Commit Graph

397 Commits

Author SHA1 Message Date
Ben Hansen
1e5a88fbee fixes #289 2022-01-25 19:54:19 -07:00
Ben Hansen
a6f6a492e7 tutorial1 now has a web example 2022-01-25 19:52:36 -07:00
sotrh
2ee7e082fa
Merge pull request #305 from yutannihilation/doc/const-vertex_attr_array
Add one more advice about vertex_attr_array! macro
2022-01-15 15:25:55 -07:00
sotrh
ed202350b6
Added code example directly
I added this in case the link breaks.
2022-01-15 15:25:27 -07:00
sotrh
4b837c08de
Merge pull request #304 from yutannihilation/remove-padding-indices
Remove a padding in INDICES
2022-01-15 15:15:24 -07:00
Hiroaki Yutani
4368358033 Add one more advice about vertex_attr_array! macro 2022-01-13 22:27:54 +09:00
Hiroaki Yutani
c06e1365cb Tweak description 2022-01-11 23:02:19 +09:00
Hiroaki Yutani
8c6c491b11 Remove padding in INDICES 2022-01-11 22:50:25 +09:00
sotrh
46e8e882d4
Merge pull request #302 from yutannihilation/remove-is-updown-pressed
Remove is_{up,down}_pressed
2022-01-10 17:16:58 -07:00
sotrh
3665859639
Merge pull request #301 from rhysd/fix-tutorial-7
Remove unused constant `NUM_INSTANCES`
2022-01-10 17:15:21 -07:00
Hiroaki Yutani
47d822865e Update the description about WGSL 2022-01-11 08:51:47 +09:00
Hiroaki Yutani
72446bc9ee Remove is_{up,down}_pressed 2022-01-11 07:48:51 +09:00
rhysd
bd3ad57387 fix typo 2022-01-11 02:59:40 +09:00
rhysd
853d44e257 remove unused constant NUM_INSTANCES 2022-01-11 02:59:31 +09:00
sotrh
e760f9f50c
Merge pull request #287 from rhysd/fix-typos
Fix some typos
2022-01-10 09:32:53 -07:00
sotrh
48c38de653
Merge pull request #290 from TonalidadeHidrica/fix-typo
Fix typos
2022-01-10 09:30:18 -07:00
sotrh
e33b8ab911
Merge pull request #292 from rhysd/old-field-name
Fix old field name
2022-01-10 09:29:53 -07:00
sotrh
8876f93c3d
Merge pull request #293 from rhysd/fix-tutorial-5
Fix `wgpu::SamplerBindingType` is now parameter of `wgpu::BindingType::Sampler`
2022-01-10 09:28:41 -07:00
sotrh
d5074ecb79
Merge pull request #298 from yutannihilation/doc/include_wgsl
Mention include_wgsl!
2022-01-10 09:27:31 -07:00
Hiroaki Yutani
2dcbfbe01e Mention include_wgsl! 2022-01-10 09:57:18 +09:00
Hiroaki Yutani
6224fe670f Link to the latest wgpu's docs 2022-01-09 23:03:53 +09:00
rhysd
c81dfd34ba fix wgpu::SamplerBindingType is now parameter of wgpu::BindingType::Sampler 2022-01-04 20:38:35 +09:00
rhysd
5d0f4ec636 fix old field name
`rasterization_state` is an old field name of
`wgpu::RenderPipelineDescriptor`
2022-01-03 15:06:30 +09:00
TonalidadeHidrica
125353a710 Fix typo: know -> known 2022-01-02 16:52:20 +09:00
TonalidadeHidrica
083d8f0640 Fix typo: were -> where 2022-01-02 16:45:34 +09:00
rhysd
54121a5c54 fix some typos 2021-12-30 23:17:16 +09:00
Ben Hansen
c0843b3f92 fixes #285 2021-12-29 11:57:29 -07:00
Ben Hansen
611b299072 missed multiview in tutorial3 2021-12-29 11:33:55 -07:00
Ben Hansen
ef72161771 Merge branch 'master' of github.com:sotrh/learn-wgpu 2021-12-29 11:22:45 -07:00
Ben Hansen
4ae6c3f89f added 0.12.md and examples now compile 2021-12-27 13:48:52 -07:00
Ben Hansen
2073b0fbc1 updated to 0.12 2021-12-27 12:09:25 -07:00
Niklas Eicker
064a0a5efd Some small fixes for beginner tutorials 1 to 5 2021-12-18 17:18:21 +01:00
Marek Fajkus
f0b3e72740
suggest clarification 2021-12-06 00:15:26 +01:00
Marek Fajkus
88209a1650
few more 2021-12-06 00:13:33 +01:00
Marek Fajkus
0c9236000a
few more fixes 2021-12-05 23:51:22 +01:00
Marek Fajkus
75c9d21fa0
more fixes 2021-12-05 23:47:43 +01:00
Marek Fajkus
7cb3cc9ddc
improve wording in beginner/tutorial2-surface 2021-12-05 23:41:45 +01:00
Josh015
110743247f Whoops 2021-11-25 20:03:08 -05:00
Josh015
a90a168280 Fixed flipped tex_coords in tutorial5-textures 2021-11-25 20:01:47 -05:00
sotrh
aa204f2178
Merge pull request #266 from nxsy/cgmath-prelude-import
Add cgmath prelude import in tutorial 7
2021-11-24 16:00:36 -07:00
sotrh
be7aa893d6
Merge pull request #267 from nxsy/tutorial9-rgba-as-reference
Provide explanation why rgba is no longer a reference
2021-11-24 15:58:49 -07:00
sotrh
fc9d31f87c
Merge pull request #268 from nxsy/tutorial9-import-trait
Explain why model::Vertex needs to be imported in tutorial 9
2021-11-24 15:56:00 -07:00
Neil Blakey-Milner
85fa2ccea9 Simplify the bind_group flow in tutorial 9 2021-11-22 18:52:49 -08:00
Neil Blakey-Milner
0821b6fd9a Explain why model::Vertex needs to be imported in tutorial 9 2021-11-22 18:22:19 -08:00
Neil Blakey-Milner
02e99b66ab Provide explanation why rgba is no longer a reference 2021-11-22 17:52:17 -08:00
Neil Blakey-Milner
f9cfd79d95 Add cgmath prelude import in tutorial 7 2021-11-22 16:44:30 -08:00
sotrh
b0d9ac3245
Merge pull request #261 from Paulo-21/patch-1
Update docs.rs link to 0.11.0
2021-11-20 13:24:54 -07:00
Arif Driessen
f0035b6b9b
Remove redundant 'NEW' comment from label
PipelineLayoutDescriptor already has its label set when we get to this point in the tutorial.

(It's set at docs/beginner/tutorial3-pipeline/README.md, line 154)
2021-11-07 20:00:29 +01:00
Arif Driessen
87c380517d
small typo 2021-11-06 22:26:47 +01:00
Pmimo
d9ef1e241e
Update docs.rs link to 0.11.0 2021-11-05 21:28:06 +01:00
sotrh
75948417e7
Merge pull request #257 from FrankenApps/shader-entrypoints
Name shader entry points differently.
2021-11-05 11:22:03 -06:00
sotrh
667d7c16d9
Merge pull request #259 from arifd/master
Rust resolver 2 default in 2021 edition
2021-11-01 13:59:35 -06:00
sotrh
d4f5429bbb
Merge pull request #256 from PhilipK/fix-typo-tutorial2
Fix typo in tutorial2-surface README.md
2021-11-01 13:59:04 -06:00
Arif Driessen
6042b6e821
Update README.md 2021-10-31 16:31:58 +01:00
Ferdinand Schäffler
bd46bdb243 Converted docs. 2021-10-27 13:17:40 +02:00
Philip Kristoffersen
f31af2d2cb
Fix typo in tutorial2-surface README.md
Add a missing "to"
2021-10-27 06:41:05 +02:00
Pmimo
d26d61e4be
Update link to 0.11 docs.rs 2021-10-26 00:53:11 +02:00
laalsaas
297923e578
fix typo kronos to khronos 2021-10-18 13:18:53 +02:00
Ben Hansen
e0e52584a6 fixed pong for 0.11 2021-10-15 12:05:03 -06:00
Ben Hansen
7cc67f5678 migrated to 0.11 2021-10-08 18:40:29 -06:00
sotrh
e15fc946ac
Merge pull request #242 from PAUL-BERNARD/master
Fix some typos
2021-10-01 15:14:00 -06:00
sotrh
b40fbb6121
Merge pull request #243 from chrisboyce/chrisboyce-tut2-fix
No "first()" method on Iterator
2021-10-01 15:12:03 -06:00
sotrh
ff43b83a89
Merge pull request #244 from SuperSamus/master
model.rs: added "_bind_group" where appropriate
2021-10-01 15:11:33 -06:00
Spencer Imbleau
172a65ad72
Fixed typo: BackendBit::Primary is from a previous version 2021-09-28 07:09:41 -04:00
Martino Fontana
11b24cebc5 model.rs: added "_bind_group" where appropriate 2021-09-25 21:52:42 +02:00
Chris Boyce
bb32dbdb52
No "first()" method on Iterator
As far as I can tell looking at the docs, there is no "first" method for the Iterator trait, but I believe "next" accomplishes getting the first item in this instance.
2021-09-25 11:45:31 -07:00
Paul BERNARD
1dad054540 typos 2021-09-22 20:24:20 +02:00
Fabian Kloiber
6546507acf Fix wording
Remove duplicate "the" and shuffle some words around
2021-09-19 22:35:17 +02:00
Fabian Kloiber
85857948bf Update field name attachment
In the section on `RenderPassColorAttachment` the text uses the old name `attachment` for the field which now is called `view`.
2021-09-19 22:35:17 +02:00
Fabian Kloiber
da913a90af Update link to wgpu docs
Link to `wgpu::Limits` pointed to old version 0.7
2021-09-19 22:35:17 +02:00
Ben Hansen
778a7d907b fixed #239 2021-09-19 13:48:01 -06:00
Kuroki Keiichiro
29a084b1b1 Update an explaining comment for its code
The code has been updated for wgpu-0.10 (`wgpu::TextureUsage::SAMPLED`
-> `wgpu::TextureUsages::TEXTURE_BINDING`), but its comment was not
updated at the same time.
2021-09-19 15:19:15 +09:00
sotrh
bba4376e34
Merge pull request #233 from rukai/env_logger
Add section on why env_logger is needed
2021-09-17 10:56:05 -06:00
sotrh
c013b28f59
Merge pull request #234 from chrisboyce/master
Fixed mask field name in text
2021-09-17 10:34:57 -06:00
sotrh
d63ab6f8d5
Merge pull request #237 from TheBlueFireFox/master
Fixed issue with code example was not ported to 0.10.x
2021-09-17 10:32:21 -06:00
sotrh
432077c7d0
Merge pull request #236 from schnippl0r/master
Fixed code snippet.
2021-09-17 10:31:08 -06:00
Adrian Hornung
6654cae15b Fixed issue with code example was not ported to 0.10.x 2021-09-17 18:27:32 +02:00
Mario Kilies
e281746334 Fixed code example.
'instance' and 'adapter' are not defined (and not needed) in State.
2021-09-17 02:52:42 +02:00
Onirik79
651da2ff23
Updated a link to wgpu docs 2021-09-16 20:07:49 +02:00
Chris Boyce
1ab24facf2
Fixed mask field name in text 2021-09-15 16:59:20 -07:00
Lucas Kent
f2c0f2aa3c Add section on why env_logger is needed 2021-09-16 09:51:21 +10:00
Ben Hansen
a2285094c2 fixed #231 2021-09-15 09:52:19 -06:00
Ben Hansen
6d600965f4 some typos 2021-09-13 08:58:14 -06:00
sotrh
316c429d2f
Merge pull request #228 from VillSnow/patch-1
fix type name Camera to CameraUniform
2021-09-12 11:35:44 -06:00
Ben Hansen
5ddd876d4f Merge branch '0.10' 2021-09-11 15:35:21 -06:00
Ben Hansen
7c90669f89 migrated beginner tutorials 2021-09-11 11:11:30 -06:00
Ben Hansen
358ecb55af migrate tutorial5 docs 2021-09-11 10:42:13 -06:00
Ben Hansen
c0754f9dd3 migrated tutorial5 2021-09-11 10:37:05 -06:00
Ben Hansen
57d7eb763f migrated tutorial4 2021-09-11 10:19:15 -06:00
Ben Hansen
0f618a2ff8 migrated tutorial3 2021-09-11 10:10:18 -06:00
Ben Hansen
012dff0de0 renamed tutorial2 2021-09-11 09:40:47 -06:00
Ben Hansen
b322b8f6b8 reworked swapchain tutorial to use surface 2021-09-11 09:34:13 -06:00
VillSnow
d13ba88020 fix type name Camera to CameraUniform 2021-09-09 18:46:43 +09:00
Ben Hansen
30c5693fb9 no more validation errors 2021-09-07 17:17:08 -06:00
Ben Hansen
822f2d6191 started 0.10 2021-08-28 16:11:33 -06:00
Onirik79
cd5c440cc1
minor typo 2021-08-28 17:05:46 +02:00
Martino Fontana
372082ae90 Rename "Uniform" to "Camera" in labels too 2021-08-27 00:07:50 +02:00
Martino Fontana
b2b77294f6 Change "uniform" naming to "camera" 2021-08-26 21:09:51 +02:00
Norbert Pozar
f467e54f7a Fix location syntax (GLSL -> WGSL)
Also outdated `VertexFormat` variants.
2021-08-26 08:44:19 +09:00
sotrh
ed186bf229
Merge pull request #215 from rokonio/patch-3
Another tiny fix
2021-08-16 09:40:36 -06:00