Commit Graph

887 Commits

Author SHA1 Message Date
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
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
sotrh
9b8a883ae0
Merge pull request #254 from Paulo-21/patch-1
Update link to 0.11 docs.rs
2021-11-01 13:57:08 -06:00
Arif Driessen
6042b6e821
Update README.md 2021-10-31 16:31:58 +01:00
Ben Hansen
f25377f38b fixed fullscreen 2021-10-28 17:48:54 -06:00
Ben Hansen
592f9b3738 white text is hard to read on white background 2021-10-28 17:15:43 -06:00
Ferdinand Schäffler
bd46bdb243 Converted docs. 2021-10-27 13:17:40 +02:00