Commit Graph

699 Commits (master)

Author SHA1 Message Date
Sean Krueger 6150f521d4 Add annotation to run() 10 months ago
Sean Krueger f81e30e6ab Remove code meant for later 10 months ago
Sean Krueger 9400755cb7 Match formating of tutorial 10 months ago
Sean Krueger 780d2ef3f4 Remove unneeded dependency update
With `wasm-bindgen-futures`  being added as a dependency in tutorial 1 (bbe3d24), it is no longer necessary to add it again in tutorial 2. This section has been reworked as a note stating that WASM would fail to build without it.
10 months ago
Sean Krueger 4d6d7dcf65 Update Surface tutorial State::new()
Adds an additional explanation that the `event_loop` needs to be updated after the window has been moved. While this is fixed in the input() section, including this mention in new() allows the program to compile during the new() and resize() section if the reader did not catch this themselves. 

Adds clarity following "changed State to own window" (09207e9) commit
10 months ago
Ben Hansen 0d55cbe1f8
Merge pull request #481 from adsick/patch-1
typo fix
10 months ago
Benjamin Hansen 7de671074b removed reference to NonZeroU32 from tutorial5 10 months ago
Benjamin Hansen b76dfa4a44 fixes #478 10 months ago
Benjamin Hansen d554341f05 fixes #485 10 months ago
Ben Hansen a477f97572
Merge pull request #494 from sotrh/0.17
update to 0.17
10 months ago
Benjamin Hansen 35a4e1642b update to 0.17 10 months ago
Vadim 50edc7c15a
typo fix 11 months ago
Ben Hansen 11820796f5
Merge pull request #479 from Piturnah/patch-1
Remove erroneous code from future
12 months ago
Benjamin Hansen 48d4d1a353 pong and news 12 months ago
Benjamin Hansen 8b8e844b76 update to 0.16 12 months ago
Peter Hebden 0062a0569e
Remove code from future 12 months ago
Ben Hansen a1f5995f49
Merge pull request #455 from doup/patch-1
Improve instancing `VertexBufferLayout` creation comments order
1 year ago
Ben Hansen 7a5b20a9ac
Merge pull request #456 from cpadilla/master
Removing & reference from new() parameter
1 year ago
Ben Hansen 3e1caeec90
Merge pull request #457 from willcrichton/little-fixes
Simplify `.filter(..).next()` to `.find()`. Eliminate unnecessary lifetime parameter in `Vertex::desc`.
1 year ago
Ben Hansen df157d7e39
Merge pull request #458 from doup/patch-2
Add missing `view_formats`
1 year ago
lubomirkurcak aa867e1de8
Fix typo 1 year ago
Benjamin Hansen 2898a72bc0 switched to custom wasm-builder instead of wasm-pack for examples 1 year ago
Blatko1 9c2250bd0f
fix not working link 1 year ago
Asier Illarramendi 41d3b9daa3
Add missing `view_formats`
In "Depth Buffer" chapter.
1 year ago
Will Crichton 9e2ada2a0f Simplify `.filter(..).next()` to `.find()`. Eliminate unnecessary lifetime parameter in `Vertex::desc` 1 year ago
cpadilla 2fa53e4a4e
Removing & reference from new() parameter 1 year ago
Asier Illarramendi a6037f015d
Improve instancing layout comments order
I find it clearer if the comment explaining why 4 slots are needed is moved before the first slot definition.
1 year ago
Benjamin Hansen 7d3961cb76 fixes #453 1 year ago
Ben Hansen d1de7be91c
Merge pull request #451 from clarkeaa/tut2-copy
Minor spelling error and capitalization fix.
1 year ago
Benjamin Hansen 57a6ff4bc3 added 0.15 news doc 1 year ago
Aaron Clarke dbd18ddf00 Minor spelling error and capitalization fix. 1 year ago
Benjamin Hansen 68db03eaed updated patrons list 1 year ago
Benjamin Hansen 639e645b8b added warning to pong 1 year ago
Benjamin Hansen 9f2ecaec4a added `view_formats` details to the docs 1 year ago
Benjamin Hansen 7227f8d169 changes for 0.15 1 year ago
sotrh c17e90d926
Merge pull request #433 from erwanvivien/explain-objmodel
feat: added more information on obj_model setup
1 year ago
sotrh f94875e2a8
Merge branch 'master' into master 1 year ago
Benjamin Hansen fed567c168 fixed #435 and #382 1 year ago
Benjamin Hansen 09207e9403 changed State to own window 1 year ago
Benjamin Hansen a9230e981e upgraded dependencies 1 year ago
sotrh 664322e65a
Merge pull request #430 from erwanvivien/compare-function-doc
feat: added link to CompareFunction
1 year ago
sotrh 635522756b
Update README.md
Better grammar
1 year ago
erwanvivien ad1776684b
fix: typo indicdes -> indices 1 year ago
sotrh cdf276a5f5
Merge pull request #431 from erwanvivien/depth-texture-state-field
fix: Missing struct field
1 year ago
sotrh 54cc0f086c
Merge pull request #434 from nekodjin/master
fix: update outdated info on getting supported formats.
1 year ago
sotrh fc21a0f664
Merge pull request #436 from James2022-rgb/feature/fix_illegal_lod_min_clamp
Stop using illegal negative values for `wgpu::SamplerDescriptor::lod_min_clamp`.
1 year ago
sotrh d6460df9b2
Merge pull request #438 from ktravis/patch-1
fix: Tiny typo in window tutorial
1 year ago
Michael Carpenter 8f709412d2 Fix to docs for tutorial 11 1 year ago
Kyle Travis 656f4d7691
Tiny typo in window tutorial 1 year ago
James0124 c1ebece9c1
Stop using illegal negative values for `wgpu::SamplerDescriptor::lod_min_clamp`.
WebGPU valid usage states `lodMinClamp` must not be negative, and `lodMaxClamp` must be >= `lodMinClamp`
1 year ago
Avery R 3863322aee
update info on getting supported formats
Replace the outdated information about `get_preferred_format` with current information on `get_supported_formats`.
1 year ago
erwanvivien 2876a669f1
feat: added more information on obj_model setup 1 year ago
erwanvivien a325686cdb
fix: Missing struct field
There was no instruction on the field to add to State.

It can be easily found, but it's better if in the tutorial
1 year ago
erwanvivien c125d28743
feat: added link to CompareFunction
It adds more insights to what the field are for
1 year ago
erwanvivien 3e775e000d
feat: added link to CompareFunction
It adds more insights to what the field are for
1 year ago
Benjamin Hansen 3fde56d264 fixes #429 1 year ago
erwanvivien 9db939d53c
feat: added tesselation shader & consider not using them
Example of people not recommending them:
- https://www.reddit.com/r/vulkan/comments/c9ws13/comment/etaunjz/?utm_source=share&utm_medium=web2x&context=3
  - http://www.joshbarczak.com/blog/?p=667
- https://www.reddit.com/r/gamedev/comments/1d5duf/comment/c9n2xri/?utm_source=share&utm_medium=web2x&context=3
- https://community.khronos.org/t/does-the-use-of-geometric-shaders-significantly-reduce-performance/106326
1 year ago
erwanvivien 5d8b5b5852
Merge branch 'sotrh:master' into master 1 year ago
Benjamin Hansen 714ea27bc2 adding wgpu to fully qualify `include_wgsl!` macro as part of #423 1 year ago
Jinlei Li 2a6964185f Add a newly translated Chinese version link 2 years ago
Ian Pieragostini ca614d6c68 Fixes to docs for tutorial 10 and tutorial 11 2 years ago
erwanvivien 50ca6f8b22
fix: added missing curly to match 2 years ago
erwanvivien 424bcfeed1
fix: removed curly, repeated prototype 2 years ago
erwanvivien e1f756af65
fix: missing ending curly brace 2 years ago
sotrh 6514c34f8d
Merge pull request #416 from Joh4nnesB/patch-camera-rotation
Updated incorrect camera pitch rotation
2 years ago
nextdorf bb97a1a48e Added correct color conversation between rgb and srgb (source:
https://en.wikipedia.org/wiki/SRGB#Computing_the_transfer_function) in
buffer tutorial
2 years ago
Johannes Bauer 42df1f43a6
Updated incorrect camera pitch rotation
This was already fixed in the actual demo code with f46b2f6 but unfortunately not updated in the documentation.
2 years ago
sotrh 4f202d376d
Merge pull request #409 from PhelixOchieng/master
Fix: Could not append canvas error when running on wasm
2 years ago
sotrh b15873c392
Merge pull request #412 from Baguettifer/master
changed hexagon to pentagon
2 years ago
sotrh 73e7ee2a77
Merge pull request #413 from relrelb/patch-1
Change link to HTTPS
2 years ago
Ben Hansen 3f99b965a9 migrated to 0.14 2 years ago
relrelb f6beebae17
Change link to HTTPS 2 years ago
Baguettifer ce34941f31 changed hexagon to pentagon 2 years ago
Phelix 3c09140b80
Fix: Could not append canvas error when running on wasm 2 years ago
sotrh b2fad645de
Merge branch 'master' into evik42-0.13-update-fix 2 years ago
sotrh 954ccc4bad
Merge pull request #397 from jinleili/numbers
Fix 2 numbers on tutorial4 doc
2 years ago
sotrh 5f75beab03
Merge pull request #398 from jinleili/step_mode
Make `step_mode` easier to understand
2 years ago
sotrh 5dc50f0200
Merge pull request #399 from jinleili/filter
Fix the descriptions of `mag_filter` and `min_filter` fields
2 years ago
sotrh 4726bb5a8c
Merge pull request #400 from Ratipoka/patch-1
Remove typo : extra size field in State
2 years ago
sotrh 49fb49bdbf
Merge pull request #404 from jbckly/patch-1
Fix some code for Dependencies and the window
2 years ago
jbckly c60fcdd9a6
Use 0.13's Surface::get_supported_formats
get_preferred_format no longer exists as per https://docs.rs/wgpu/0.13.1/wgpu/struct.Surface.html#method.get_supported_formats
2 years ago
jbckly 9a578de950
Fix some code for Dependencies and the window
Needed this to get things rendering for me! otherwise we get:
```
$ cargo run
   Compiling rustp v0.1.0 (/Users/jack/dev/rustp)
warning: unused implementer of `Future` that must be used
 --> src/main.rs:4:5
  |
4 |     run();
  |     ^^^^^^
  |
  = note: `#[warn(unused_must_use)]` on by default
  = note: futures do nothing unless you `.await` or poll them

warning: `rustp` (bin "rustp") generated 1 warning
    Finished dev [unoptimized + debuginfo] target(s) in 0.48s
     Running `target/debug/rustp`
```
2 years ago
Ratipoka e4dbc77457
Remove typo : extra size argument in State 2 years ago
Jinlei Li 63f790e633 Fix the descriptions of `mag_filter` and `min_filter` fields 2 years ago
Jinlei Li 1b8144be0d Make `step_mode` easier to understand 2 years ago
Jinlei Li 6c51b3608e Fix 2 numbers on tutorial4 doc 2 years ago
Attila Mravik 2d9269aade
Fix code example for 0.13
The alternative code path missed the 0.13 update.
2 years ago
Ben Hansen c480fd51dc fixes #391 2 years ago
sotrh 7c2bfa02bf
Merge pull request #393 from mckahz/fix-camera-typo
fixed typo
2 years ago
sotrh 6951ceb3c1
Merge pull request #394 from mckahz/fix-instance-typo
Fix instance typo
2 years ago
Jinlei Li df68d03bb4 Fix `targets` data type in the doc 2 years ago
mckahz a00d1aaf1a fixed typo
syntax error in wgsl code
2 years ago
mckahz 60fdfbdbe7 Revert "fixed typo"
This reverts commit 7179c4a613.
2 years ago
mckahz 7179c4a613 fixed typo
syntax error in wgsl code
2 years ago
mckahz 603584379b fixed typo
I think this was supposed to say "warp" as that makes more sense to me than wrap. I could be mistaken though.
2 years ago
Ben Hansen 58944cb8ca fixes #384 2 years ago
Ben Hansen 1220dfa70b fixes #382 2 years ago
Ben Hansen d24553dec1 fixes #378 2 years ago
sotrh ba28fa1ee9
Merge pull request #379 from archsolar/text-correction
Small text correction docs.
2 years ago
loui 777bf0f0bd
Fixing broken link to pipeline section 2 years ago