Commit Graph

745 Commits

Author SHA1 Message Date
sotrh
ea77676365
Merge pull request #281 from NiklasEi/fixes_for_beginner_tutorials_1_to_5
Some small fixes for beginner tutorials 1 to 5
2021-12-18 12:29:32 -07:00
Niklas Eicker
064a0a5efd Some small fixes for beginner tutorials 1 to 5 2021-12-18 17:18:21 +01:00
sotrh
37a097ad97
Merge pull request #276 from turboMaCk/typos
Typo fixes in main README.md
2021-12-07 12:27:21 -07:00
Ben Hansen
0eed08b713 updated news for pong web release 2021-12-05 21:19:42 -07: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
Marek Fajkus
f16e128c33
fix typos in main README 2021-12-05 23:05:30 +01:00
Ben Hansen
3afb7099b2 Merge branch 'web' 2021-12-03 14:23:47 -07:00
Ben Hansen
d3489ec360 updating package-lock.json 2021-12-03 14:22:16 -07:00
Ben Hansen
bd6721dde2 some fixes to web 2021-12-03 14:18:06 -07:00
Ben Hansen
9570712cfc trying to fix wasm deploy 2021-12-03 12:44:16 -07:00
Ben Hansen
52aa4a3d9b install wasm-pack on deploy 2021-12-03 11:01:04 -07:00
Ben Hansen
ccafb3f6e2 Merge branch 'master' of github.com:sotrh/learn-wgpu 2021-12-03 10:59:12 -07:00
Ben Hansen
ac73aee9f5 Merge branch 'web' 2021-12-03 10:58:49 -07:00
Ben Hansen
19c1c08b62 added build-wasm.sh to deploy 2021-12-03 10:54:50 -07:00
sotrh
7addf33691
Merge pull request #274 from Josh015/master
Fixed flipped tex_coords in tutorial5-textures
2021-12-03 10:37:15 -07: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
cd11a65a8e
Merge pull request #273 from redwarp/patch-1
Fix depth buffer challenge
2021-11-25 15:32:37 -07:00
Benoît Vermont
9ba4795d9c
Fix challenge depth buffer challenge
The shader.wgsl contains entry point `vs_main` and `fs_main`, but the rust code would reference them `main` and `main`

It would cause the following crash when trying to run the code:
```
[2021-11-25T14:50:43Z ERROR wgpu::backend::direct] Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In Device::create_render_pipeline
      note: label = `Render Pipeline`
    error matching VERTEX shader requirements against the pipeline
    unable to find entry point 'main'
```

This fixes it.
2021-11-25 15:56:52 +01:00
sotrh
96d29fae84
Merge pull request #264 from Newbytee/patch-1
Fix challenge code for tutorial 3 crashing
2021-11-24 16:02:34 -07: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
92c56a6aa4
Merge pull request #272 from nxsy/tutorial12-updates
Minor update nits for tutorial 12
2021-11-24 15:56:19 -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
sotrh
f01bd48a81
Merge pull request #269 from nxsy/tutorial9-missing-bind-group
Simplify the bind_group flow in tutorial 9
2021-11-24 15:55:27 -07:00
sotrh
a3b9a42c7a
Merge pull request #270 from nxsy/tutorial10-into
Update tutorial 10 to match types and remove deprecated flags
2021-11-24 15:53:00 -07:00
sotrh
c1ecd50064
Merge pull request #271 from nxsy/tutorial11-missing-renamed-vars
Add missing or rename shader vars
2021-11-24 15:52:06 -07:00
Neil Blakey-Milner
24f4ccea20 Minor update nits for tutorial 12 2021-11-23 18:56:50 -08:00
Neil Blakey-Milner
6f388ff8eb Improve clarity of tutorial11 in terms of updates, files 2021-11-23 18:14:17 -08:00
Neil Blakey-Milner
41d8286645 Add missing or rename shader vars 2021-11-23 18:12:38 -08:00
Neil Blakey-Milner
6be05f781e Update tutorial 10 to match types and remove deprecated flags 2021-11-23 11:19:18 -08: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
Newbyte
c189f75913
Fix challenge code for tutorial 3 crashing
Only one of the pipelines were actually adjusted, so let's fix that.
2021-11-22 18:46:43 +01: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
sotrh
4a313515ab
Merge pull request #263 from arifd/master
Typo: TextureUsages::OUTPUT_ATTACHMENT
2021-11-20 13:24:34 -07:00
Arif Driessen
127c3333ce
Merge branch 'sotrh:master' into master 2021-11-19 16:56:21 +01:00
Arif Driessen
cdf980a44a
Typo: TextureUsages::OUTPUT_ATTACHMENT
TextureUsages::OUTPUT_ATTACHMENT doesn't exist. Changing to TextureUsages::RENDER_ATTACHMENT, which is what the code example uses.
2021-11-17 19:31:10 +01:00
sotrh
fbce72a3ea
Merge pull request #262 from arifd/master
small fixes
2021-11-14 11:28:07 -07:00
Arif Driessen
a8ebfc7bef
Merge pull request #1 from arifd/redundant-NEW-comment
Remove redundant 'NEW' comment from label
2021-11-07 20:02:24 +01: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
Ben Hansen
ba9147f654 example loading in vuepress 2021-11-06 18:30:22 -06: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