Commit Graph

474 Commits (f111c33cba9d9eee724f06698363700f939190ce)

Author SHA1 Message Date
erwanvivien e1f756af65
fix: missing ending curly brace 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
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 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
archsolar 67682a2b24
Small text correction docs.
love you
2 years ago
Ben Hansen 56c917c749 correcting code in tutorial3 and tutorial2 2 years ago
Ben Hansen 3e7d0a5bea updating `PresentMode` details and adding warning to pong 2 years ago
Ben Hansen a2a1d69133 migrated to 0.13 2 years ago
Ajacmac bbe3d24f70 added wasm-bindgen-futures dependency to tutorial 1 to match code example. wasm-pack won't build without it 2 years ago
sotrh 884714875c
Merge pull request #366 from liningpan/master
fix: typo in write_texture
2 years ago
sotrh ae7c6b4d91
Merge pull request #368 from 7tsvn/master
Clarified some of the steps in tutorial1-window
2 years ago
sotrh 35297142d0
Merge pull request #369 from Narcha/patch-1
Grammar fixes
2 years ago
Narcha 94e6c383e0
Fixed missing `pub` in ModelVertex struct 2 years ago
Narcha ad934b6199
Grammar fixes 2 years ago
7tsvn 38f6cd6081
updated formatting 2 years ago
7tsvn 55b9cba6ae
Update README.md 2 years ago
7tsvn d444bc7df6 Cleared up some things in tutorial1 2 years ago
Lining Pan 6b2647cacb
fix: typo in write_texture
missing reference
2 years ago
Narcha e589b5d442
Remove incorrect .unwrap() 2 years ago
sotrh b6f66e0565
Merge pull request #347 from dis-da-moe/master
Typos, references to `main.rs` supposed to be to `lib.rs`, and readability changes
2 years ago
sotrh 3a8b832c89
Merge pull request #351 from ikopysov/patch-1
Removed "pollster" from tutorial1-window readme.
2 years ago
CarlyRaeJepsenStan b2f2bd334e
Update README.md 2 years ago
disdamoe c736467db4 suggested changes 2 years ago
ikopysov e43a744b5a
Removed "pollster" from tutorial1-window readme.
It seems that in #345 pollster was removed from the example, but not from the code in the page.
This change removes it from the code in the tutorial, so it will work just by pasting it in the editor.
2 years ago
disdamoe 03e905cc4d Fixed accidental indentation change 2 years ago
disdamoe 33bd66e368 docs for tutorials 1-9: typos, references to `main.rs` supposed to be to `lib.rs`, and readability changes 2 years ago
sotrh d99a4f7d15
Merge pull request #346 from kneasle/indentation-fixes
Fix indentation
2 years ago
Ben Hansen a595bccaf9 Merge branch 'master' of github.com:sotrh/learn-wgpu 2 years ago
Ben Hansen 8bbdb09c67 fixes #278 2 years ago
Ben Hansen 0cb0b273c3 fixes #345 2 years ago
Kneasle 964ad9307b Fix indentation
In beginner chapter 9 'Model Loading', the `fn format_url(...)` line was
unnecessarily indented.  This PR also makes some minor reformatting
(presumably caused by changes to `rustfmt`).
2 years ago
sotrh b037cb7bc8
Merge pull request #340 from 8picoz/feature/tobj_version
fix tobj version
2 years ago
Ben Hansen 1b0ce54080 fixes #330 2 years ago
Ben Hansen 3541cdb76b fixes #333 2 years ago
tata e100c4052c fix tobj version 2 years ago
Ben Hansen ef6ec265d8 Merge branch 'master' into web2 2 years ago
Yifeng Wang cdf0b152b1 fix typo 2 years ago
Ben Hansen 0a28699d00 web examples working with vuepress 2 years ago
Ben Hansen c269f46a0e testing some things 2 years ago
Ben Hansen b8b8444030 fixing some readme files and migrating the lighting code 2 years ago
Ben Hansen 6324e485f1 tutorials 1-9 now work with wasm 2 years ago
Rokonio 2b9e09d19d
Fix a typo 2 years ago
sotrh eed8f014c2
Merge pull request #309 from jeffawang/remove-block-note
tut6: remove sentence about block decorator
2 years ago
Marian Cichy f17d27dabd docs: surface: change frame.view to view
`frame.view` does not exist in the whole tutorial and is probably a remant
from older versions. The text is actually referring to `view`
2 years ago
Jeff Wang ed632adec8 tut6: remove sentence about block decorator 2 years ago
Ben Hansen 3492bb703f working on tutorial9 2 years ago
Ben Hansen 16d82909e3 adjusted indent on tutorial2 2 years ago
Ben Hansen 2bb9be1660 tutorials 2-8 now have working web examples 2 years ago
Ben Hansen 1e5a88fbee fixes #289 2 years ago
Ben Hansen a6f6a492e7 tutorial1 now has a web example 2 years ago
sotrh 2ee7e082fa
Merge pull request #305 from yutannihilation/doc/const-vertex_attr_array
Add one more advice about vertex_attr_array! macro
2 years ago
sotrh ed202350b6
Added code example directly
I added this in case the link breaks.
2 years ago
sotrh 4b837c08de
Merge pull request #304 from yutannihilation/remove-padding-indices
Remove a padding in INDICES
2 years ago
Hiroaki Yutani 4368358033 Add one more advice about vertex_attr_array! macro 2 years ago
Hiroaki Yutani c06e1365cb Tweak description 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
sotrh 3665859639
Merge pull request #301 from rhysd/fix-tutorial-7
Remove unused constant `NUM_INSTANCES`
2 years ago
Hiroaki Yutani 47d822865e Update the description about WGSL 2 years ago
Hiroaki Yutani 72446bc9ee Remove is_{up,down}_pressed 2 years ago
rhysd bd3ad57387 fix typo 2 years ago
rhysd 853d44e257 remove unused constant `NUM_INSTANCES` 2 years ago
sotrh e760f9f50c
Merge pull request #287 from rhysd/fix-typos
Fix some typos
2 years ago
sotrh 48c38de653
Merge pull request #290 from TonalidadeHidrica/fix-typo
Fix typos
2 years ago
sotrh e33b8ab911
Merge pull request #292 from rhysd/old-field-name
Fix old field name
2 years ago
sotrh 8876f93c3d
Merge pull request #293 from rhysd/fix-tutorial-5
Fix `wgpu::SamplerBindingType` is now parameter of `wgpu::BindingType::Sampler`
2 years ago
sotrh d5074ecb79
Merge pull request #298 from yutannihilation/doc/include_wgsl
Mention include_wgsl!
2 years ago
Hiroaki Yutani 2dcbfbe01e Mention include_wgsl! 2 years ago
Hiroaki Yutani 6224fe670f Link to the latest wgpu's docs 3 years ago
rhysd c81dfd34ba fix `wgpu::SamplerBindingType` is now parameter of `wgpu::BindingType::Sampler` 3 years ago
rhysd 5d0f4ec636 fix old field name
`rasterization_state` is an old field name of
`wgpu::RenderPipelineDescriptor`
3 years ago