Ben Hansen
b8b8444030
fixing some readme files and migrating the lighting code
2022-02-18 14:22:14 -07:00
Ben Hansen
6324e485f1
tutorials 1-9 now work with wasm
2022-02-18 13:36:21 -07:00
Rokonio
2b9e09d19d
Fix a typo
2022-02-15 23:36:54 +01:00
sotrh
eed8f014c2
Merge pull request #309 from jeffawang/remove-block-note
...
tut6: remove sentence about block decorator
2022-02-03 16:44:07 -07:00
Marian Cichy
f17d27dabd
docs: surface: change frame.view to view
...
`frame.view` does not exist in the whole tutorial and is probably a remant
from older versions. The text is actually referring to `view`
2022-02-02 15:53:06 +01:00
Jeff Wang
ed632adec8
tut6: remove sentence about block decorator
2022-01-31 19:46:28 -08:00
Ben Hansen
3492bb703f
working on tutorial9
2022-01-25 19:54:21 -07:00
Ben Hansen
16d82909e3
adjusted indent on tutorial2
2022-01-25 19:54:21 -07:00
Ben Hansen
2bb9be1660
tutorials 2-8 now have working web examples
2022-01-25 19:54:21 -07:00
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
sotrh
0b1adb463f
Merge pull request #217 from rokonio/patch-4
...
Fix on vert_attr_array
2021-08-16 09:40:03 -06:00
sotrh
59bc306c32
Merge pull request #214 from rokonio/patch-2
...
Found a typo
2021-08-16 09:39:39 -06:00
Sitong Peng
4211abcc12
your -> you'll
2021-08-12 16:50:52 -07:00
Rokonio
aa5856fa91
Fix on vert_attr_array
2021-08-11 22:20:30 +02:00
Rokonio
aadd2e67b6
Another tiny fix
2021-08-10 22:00:07 +02:00
Rokonio
ab78dcf7a7
Found a typo
2021-08-10 21:57:07 +02:00
sotrh
1030f47529
Merge pull request #212 from rokonio/master
...
Fixing #200
2021-08-09 16:20:36 -06:00
sotrh
5a51bf47f9
Merge pull request #210 from SuperSamus/master
...
Miscellaneous improvements
2021-08-09 14:58:23 -06:00
Ben Hansen
58eca592c1
fixed #202
2021-08-09 14:51:54 -06:00
Rokonio
1c26da1757
Fixing #200
2021-08-09 00:24:18 +02:00
Epacnoss
d9e6c4a326
Change Float3 to Float32
2021-08-07 22:29:18 +01:00
Martino Fontana
2941cf7cd9
Updated dependencies where I can just change the number (not "tobj" and "gif") ("compute" can't start a trace) (didn't touch "pong" and "imgui-demo")
2021-08-04 16:25:23 +02:00
Martino Fontana
c55ea96d0d
Removed unnecessary .clone()
2021-08-04 15:13:08 +02:00
Martino Fontana
467cec5367
Removed unnecessary borrows
2021-08-04 15:06:53 +02:00
Martino Fontana
2c811f43a4
Truncated excessive float precision
2021-08-04 14:58:23 +02:00
Martino Fontana
c80b5a9ae2
Collapsed event_loop match
2021-08-04 14:17:21 +02:00
Martino Fontana
b5af53b272
Simplify DrawModel and DrawLight lifetimes
2021-08-04 13:20:15 +02:00
Ben Hansen
12c7ba6de8
fixed #182
2021-07-20 17:48:23 -06:00
Ben Hansen
87c6fa9971
fixed #158
2021-07-20 17:25:47 -06:00
Joshua Barretto
12ba9bed0c
Switched to pollster
2021-07-14 13:26:05 +01:00
Ben Hansen
0813fd03a4
Merge branch 'master' into 0.9
2021-06-28 09:24:39 -06:00
Rokonio
0f63cee02e
Update README.md
...
When the vertex class is updated, the `bytemuck`s trait were missing
2021-06-26 14:47:59 +02:00
Ben Hansen
b5ce220c2b
upgraded to 0.9
2021-06-19 16:31:49 -06:00
Ben Hansen
c22808f17a
fixed #162
2021-06-19 15:27:55 -06:00
Gwenhwyfar Hartshaw
55c9a7f44c
Add missing fields in PrimitiveState
...
The render pipeline page was missing the `clamp_depth` and `conservative` fields of the `wgpu::PrimitiveState` struct, added with wgpu 0.8. These were correct in the full code, but not the snippets in the doc.
2021-06-18 13:59:09 -04:00
Ben Hansen
5f77f40ec1
fixes #191
2021-06-16 19:14:00 -06:00
Aevyrie
2eeffbb84a
Rename RenderPassDepthStencilAttachmentDescriptor
...
Rename RenderPassDepthStencilAttachmentDescriptor -> RenderPassDepthStencilAttachment
See: https://docs.rs/wgpu/0.8.1/wgpu/struct.RenderPassDepthStencilAttachment.html
2021-06-08 00:19:51 -07:00
Aevyrie
e16efae327
Remove clamp_depth from DepthStencilState
...
clamp_depth no longer exists on DepthStencilState, and is instead only on PrimitiveState.
2021-06-08 00:01:59 -07:00
sotrh
0585ca5ca5
Merge pull request #188 from aevyrie/patch-2
...
wgpu 0.8 corrections
2021-06-07 17:24:47 -06:00
Aevyrie
5cd42e231c
Missing qualifier
2021-06-06 10:32:38 -07:00
Aevyrie
adc729747b
Fix grammatical error
2021-06-06 10:30:46 -07:00
Aevyrie
c9003caa9f
ImageDataLayout change
2021-06-06 01:40:12 -07:00
Aevyrie
b8853689fe
wgpu 0.8 BlendState change
2021-06-05 23:52:02 -07:00
Aevyrie
382f12383e
Update README.md
...
Small typo.
2021-06-05 21:09:10 -07:00
sotrh
dd7d48929f
Merge pull request #181 from al-tameemi/e6029cb
...
Updated the use of RenderPassColorAttachmentDescriptor to RenderPassColorAttachment
2021-06-01 11:57:27 -06:00
Hugo Woodiwiss
67c9246b2f
Updated tutorial to work with tobj 3.0.x
2021-06-01 14:19:32 +01:00
Mohammed Al-Tameemi
17ca6e5a3e
Updated to the new color attachment method
2021-05-25 20:21:56 -04:00
nyx
7755e16a4b
Changed wgpu version in example
...
Removed shaderc from example
2021-05-25 13:56:38 +02:00
Ben Hansen
2dd8d7bf82
fixes #176
2021-05-24 14:45:15 -06:00
Ben Hansen
de57cdf4ea
fixes #173
2021-05-24 14:23:53 -06:00
Ben Hansen
b160f28d48
tutorials 6-9 migrated
2021-05-20 17:53:47 -06:00