Commit Graph

275 Commits

Author SHA1 Message Date
TonalidadeHidrica
0b9840e1ec Fix typo: w -> we 2022-01-04 03:44:01 +09:00
Ben Hansen
c0843b3f92 fixes #285 2021-12-29 11:57:29 -07:00
Ben Hansen
4ae6c3f89f added 0.12.md and examples now compile 2021-12-27 13:48:52 -07:00
Ben Hansen
a4ce6093b7 pong is working again 2021-12-27 13:02:05 -07:00
Ben Hansen
2073b0fbc1 updated to 0.12 2021-12-27 12:09:25 -07:00
Ben Hansen
3afb7099b2 Merge branch 'web' 2021-12-03 14:23:47 -07:00
Ben Hansen
bd6721dde2 some fixes to web 2021-12-03 14:18:06 -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
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
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
Ben Hansen
ba9147f654 example loading in vuepress 2021-11-06 18:30:22 -06: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
a39f95af13 Converted code examples. 2021-10-27 12:58:05 +02:00
Ben Hansen
141c94f48a wasm now loading 2021-10-24 17:37:30 -06:00
Ben Hansen
0da913d253 wasm is building 2021-10-22 15:55:39 -06: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
Martino Fontana
11b24cebc5 model.rs: added "_bind_group" where appropriate 2021-09-25 21:52:42 +02:00
Ben Hansen
4adea9e790 fixed pong 2021-09-21 20:43:22 -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
833d18ff05 explaining why imgui-demo and pong are still broken 2021-09-11 15:34:26 -06:00
Ben Hansen
fd589adbe1 finished code migration 2021-09-11 15:14:31 -06:00
Ben Hansen
88df0ff823 migrated intermediate tutorials 2021-09-11 11:23:07 -06:00
Ben Hansen
7c90669f89 migrated beginner tutorials 2021-09-11 11:11:30 -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
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
2c3e2be256 changing getting surface texture to use intermediate variable 2021-09-04 17:42:09 -06:00
Ben Hansen
d47d986542 testing on master 2021-08-28 16:40:52 -06:00
Ben Hansen
822f2d6191 started 0.10 2021-08-28 16:11:33 -06:00
Martino Fontana
372082ae90 Rename "Uniform" to "Camera" in labels too 2021-08-27 00:07:50 +02:00
Martino Fontana
463b6117eb Renamed "light" to "light_uniform" 2021-08-26 21:34:21 +02:00
Martino Fontana
b2b77294f6 Change "uniform" naming to "camera" 2021-08-26 21:09:51 +02:00
Ben Hansen
70bf012641 fixed tangent/bitangent comp and cargo fmt 2021-08-15 10:44:57 -06:00
Rokonio
62a9c476f0
Add a forgoten semicolon 2021-08-10 21:54:47 +02:00
sotrh
1030f47529
Merge pull request #212 from rokonio/master
Fixing #200
2021-08-09 16:20:36 -06:00
Rokonio
7a35109700
Fixing my mistakes 2021-08-09 01:03:31 +02:00
Rokonio
f0e150a190
Fixing my mistakes 2021-08-09 01:01:27 +02:00
Rokonio
4ff3fbd19a
Fixing my mistakes 2021-08-09 00:58:30 +02:00
Rokonio
a470da007f
Fixing #200 2021-08-09 00:48:20 +02:00
Rokonio
7fb76b4e0e
Fixing #200 2021-08-09 00:46:47 +02:00
Rokonio
2e6e413d73
Fixing #200 2021-08-09 00:45:59 +02:00
Rokonio
809d7a8f59
Fixing #200 2021-08-09 00:44:59 +02:00
Rokonio
c6b7033b0d
Fixing #200 2021-08-09 00:43:43 +02:00
Rokonio
33163b5592
Fixing #200 2021-08-09 00:42:07 +02:00