Commit Graph

284 Commits (cbce0a546e0da927bf29fbc976ef7c21b9e6f794)

Author SHA1 Message Date
Ben Hansen cbce0a546e experimenting with loader on tutorial9 2 years ago
Ben Hansen 2bb9be1660 tutorials 2-8 now have working web examples 2 years ago
Ben Hansen a6f6a492e7 tutorial1 now has a web example 2 years ago
Ben Hansen 59f0ec16f0 migrated tutorial to use lib.r 2 years ago
sotrh 4b837c08de
Merge pull request #304 from yutannihilation/remove-padding-indices
Remove a padding in INDICES
2 years ago
Hiroaki Yutani 8c6c491b11 Remove padding in INDICES 2 years ago
sotrh 46e8e882d4
Merge pull request #302 from yutannihilation/remove-is-updown-pressed
Remove is_{up,down}_pressed
2 years ago
Hiroaki Yutani 72446bc9ee Remove is_{up,down}_pressed 2 years ago
rhysd 853d44e257 remove unused constant `NUM_INSTANCES` 2 years ago
TonalidadeHidrica 0b9840e1ec Fix typo: w -> we 3 years ago
Ben Hansen c0843b3f92 fixes #285 3 years ago
Ben Hansen 4ae6c3f89f added 0.12.md and examples now compile 3 years ago
Ben Hansen a4ce6093b7 pong is working again 3 years ago
Ben Hansen 2073b0fbc1 updated to 0.12 3 years ago
Ben Hansen 3afb7099b2 Merge branch 'web' 3 years ago
Ben Hansen bd6721dde2 some fixes to web 3 years ago
Ben Hansen ccafb3f6e2 Merge branch 'master' of github.com:sotrh/learn-wgpu 3 years ago
Ben Hansen ac73aee9f5 Merge branch 'web' 3 years ago
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.
3 years ago
Newbyte c189f75913
Fix challenge code for tutorial 3 crashing
Only one of the pipelines were actually adjusted, so let's fix that.
3 years ago
Ben Hansen ba9147f654 example loading in vuepress 3 years ago
Ben Hansen f25377f38b fixed fullscreen 3 years ago
Ben Hansen 592f9b3738 white text is hard to read on white background 3 years ago
Ferdinand Schäffler a39f95af13 Converted code examples. 3 years ago
Ben Hansen 141c94f48a wasm now loading 3 years ago
Ben Hansen 0da913d253 wasm is building 3 years ago
Ben Hansen e0e52584a6 fixed pong for 0.11 3 years ago
Ben Hansen 7cc67f5678 migrated to 0.11 3 years ago
Martino Fontana 11b24cebc5 model.rs: added "_bind_group" where appropriate 3 years ago
Ben Hansen 4adea9e790 fixed pong 3 years ago
sotrh 316c429d2f
Merge pull request #228 from VillSnow/patch-1
fix type name Camera to CameraUniform
3 years ago
Ben Hansen 833d18ff05 explaining why imgui-demo and pong are still broken 3 years ago
Ben Hansen fd589adbe1 finished code migration 3 years ago
Ben Hansen 88df0ff823 migrated intermediate tutorials 3 years ago
Ben Hansen 7c90669f89 migrated beginner tutorials 3 years ago
Ben Hansen c0754f9dd3 migrated tutorial5 3 years ago
Ben Hansen 57d7eb763f migrated tutorial4 3 years ago
Ben Hansen 0f618a2ff8 migrated tutorial3 3 years ago
Ben Hansen b322b8f6b8 reworked swapchain tutorial to use surface 3 years ago
VillSnow d13ba88020 fix type name Camera to CameraUniform 3 years ago
Ben Hansen 30c5693fb9 no more validation errors 3 years ago
Ben Hansen 2c3e2be256 changing getting surface texture to use intermediate variable 3 years ago
Ben Hansen d47d986542 testing on master 3 years ago
Ben Hansen 822f2d6191 started 0.10 3 years ago
Martino Fontana 372082ae90 Rename "Uniform" to "Camera" in labels too 3 years ago
Martino Fontana 463b6117eb Renamed "light" to "light_uniform" 3 years ago
Martino Fontana b2b77294f6 Change "uniform" naming to "camera" 3 years ago
Ben Hansen 70bf012641 fixed tangent/bitangent comp and cargo fmt 3 years ago
Rokonio 62a9c476f0
Add a forgoten semicolon 3 years ago
sotrh 1030f47529
Merge pull request #212 from rokonio/master
Fixing #200
3 years ago