Commit Graph

585 Commits (6514c34f8d1312d032baa66180235a745dda218c)

Author SHA1 Message Date
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
Ben Hansen bcb4282f1e fixes #362 2 years ago
Narcha e589b5d442
Remove incorrect .unwrap() 2 years ago
Yifeng Wang 48f4fc8d66
chore: remove badge 2 years ago
sotrh 718123dede
Merge pull request #355 from lidongjies/fix/showcase-windowless
Fix windowless showcase
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 cbf7f4e1a6 suggested changes 2 years ago
disdamoe c736467db4 suggested changes 2 years ago
lidongjies 1d2d7d5783 Fix windowless showcase 2 years ago
Yifeng Wang 6138bf7efa
add Chinese translation and badge 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
dis_da_moe 2275f68247 Typos and grammar for rest of docs 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
3 years ago
Ben Hansen a595bccaf9 Merge branch 'master' of github.com:sotrh/learn-wgpu 3 years ago
Ben Hansen 8bbdb09c67 fixes #278 3 years ago
Ben Hansen 27fb79c4ab fixes #337 3 years ago
Ben Hansen 4d33b048c2 fixes #343 3 years ago
Ben Hansen 0cb0b273c3 fixes #345 3 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`).
3 years ago
sotrh b037cb7bc8
Merge pull request #340 from 8picoz/feature/tobj_version
fix tobj version
3 years ago
Ben Hansen 1b0ce54080 fixes #330 3 years ago
Ben Hansen 3541cdb76b fixes #333 3 years ago
tata e100c4052c fix tobj version 3 years ago
Thibault Lemaire e077596cd7
Fix typos in Working with Lights: The normal matrix
Noticed those while following the tutorial, didn't do a thorough check though, so there could be others.
3 years ago
Ben Hansen ef6ec265d8 Merge branch 'master' into web2 3 years ago
Ben Hansen 1135fead3a updated intermediate tutorial docs and removing tutorial13 for maintenance 3 years ago
Ben Hansen e8ce0e710d tutorial12-camera running in wasm (needs input fix) 3 years ago
Yifeng Wang cdf0b152b1 fix typo 3 years ago
Ben Hansen 0a28699d00 web examples working with vuepress 3 years ago
roudy16 2c4b3668cd address review comment 3 years ago
roudy16 212da09b15 enable right-handed normal maps 3 years ago
sotrh f9b6704cc4
Merge pull request #322 from rokonio/patch-4
Add missing half_dir
3 years ago
Rokonio a9985c2f94
Add missing half_dir
The shader panics (see below) because `half_dir` is missing so I added it.
```
❯ cargo run
   Compiling graphic_rust v0.1.0 (/home/rokonio/dev/rust/graphic_rust)
    Finished dev [unoptimized + debuginfo] target(s) in 5.39s
     Running `target/debug/graphic_rust`
[2022-02-20T10:27:50Z ERROR wgpu::backend::direct] Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In Device::create_shader_module
      note: label = `Shader`
    
Shader 'Shader' parsing error: no definition in scope for identifier: 'half_dir'
   ┌─ wgsl:93:57
   │
93 │     let specular_strength = pow(max(dot(tangent_normal, half_dir), 0.0), 32.0);
   │                                                         ^^^^^^^^ unknown identifier


    no definition in scope for identifier: 'half_dir'

', /home/rokonio/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.12.0/src/backend/direct.rs:2273:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
3 years ago
Rokonio 411702cf17
Correct an error in the normal map tutorial
`wgpu::BindingType::Sampler` is a tuple like variant
3 years ago
Ben Hansen c269f46a0e testing some things 3 years ago
Ben Hansen b8b8444030 fixing some readme files and migrating the lighting code 3 years ago
Ben Hansen 6324e485f1 tutorials 1-9 now work with wasm 3 years ago
sotrh 214cdcfb68
Merge pull request #317 from rokonio/patch-1
Fix a typo
3 years ago
Daisuke Kato c09edf860e fix typo in docs/tutorial13-threading
Propably -> Probably
3 years ago
Rokonio 2b9e09d19d
Fix a typo 3 years ago
sotrh eed8f014c2
Merge pull request #309 from jeffawang/remove-block-note
tut6: remove sentence about block decorator
3 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`
3 years ago
Jeff Wang ed632adec8 tut6: remove sentence about block decorator 3 years ago
Ben Hansen 3492bb703f working on tutorial9 3 years ago
Ben Hansen 16d82909e3 adjusted indent on tutorial2 3 years ago
Ben Hansen 2bb9be1660 tutorials 2-8 now have working web examples 3 years ago
Ben Hansen 1e5a88fbee fixes #289 3 years ago
Ben Hansen a6f6a492e7 tutorial1 now has a web example 3 years ago
sotrh 2ee7e082fa
Merge pull request #305 from yutannihilation/doc/const-vertex_attr_array
Add one more advice about vertex_attr_array! macro
3 years ago
sotrh ed202350b6
Added code example directly
I added this in case the link breaks.
3 years ago
sotrh 4b837c08de
Merge pull request #304 from yutannihilation/remove-padding-indices
Remove a padding in INDICES
3 years ago
Hiroaki Yutani 4368358033 Add one more advice about vertex_attr_array! macro 3 years ago
Hiroaki Yutani c06e1365cb Tweak description 3 years ago
Hiroaki Yutani 8c6c491b11 Remove padding in INDICES 3 years ago
sotrh 46e8e882d4
Merge pull request #302 from yutannihilation/remove-is-updown-pressed
Remove is_{up,down}_pressed
3 years ago
sotrh 3665859639
Merge pull request #301 from rhysd/fix-tutorial-7
Remove unused constant `NUM_INSTANCES`
3 years ago
Hiroaki Yutani 47d822865e Update the description about WGSL 3 years ago
Hiroaki Yutani 72446bc9ee Remove is_{up,down}_pressed 3 years ago
rhysd bd3ad57387 fix typo 3 years ago
rhysd 853d44e257 remove unused constant `NUM_INSTANCES` 3 years ago
sotrh e760f9f50c
Merge pull request #287 from rhysd/fix-typos
Fix some typos
3 years ago
sotrh 48c38de653
Merge pull request #290 from TonalidadeHidrica/fix-typo
Fix typos
3 years ago
sotrh e33b8ab911
Merge pull request #292 from rhysd/old-field-name
Fix old field name
3 years ago
sotrh 8876f93c3d
Merge pull request #293 from rhysd/fix-tutorial-5
Fix `wgpu::SamplerBindingType` is now parameter of `wgpu::BindingType::Sampler`
3 years ago
sotrh 1104818da0
Merge pull request #295 from CatCode79/patch-1
Fix to Link to the "alignment" page
3 years ago
sotrh d5074ecb79
Merge pull request #298 from yutannihilation/doc/include_wgsl
Mention include_wgsl!
3 years ago
Hiroaki Yutani 2dcbfbe01e Mention include_wgsl! 3 years ago
Hiroaki Yutani 6224fe670f Link to the latest wgpu's docs 3 years ago
Andrea Postal 1a7c038eb4
Fix to Link to the "alignment" page
Fix to ` Link to the "alignment" page is broken #291 ` issue
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
TonalidadeHidrica 125353a710 Fix typo: know -> known 3 years ago
TonalidadeHidrica 083d8f0640 Fix typo: were -> where 3 years ago
Ben Hansen eaeb7931a1 update patrons list 3 years ago
rhysd 54121a5c54 fix some typos 3 years ago
Ben Hansen 4d0be61d76 typos in news/0.12 3 years ago
Ben Hansen c0843b3f92 fixes #285 3 years ago
Ben Hansen 611b299072 missed multiview in tutorial3 3 years ago
Ben Hansen 75bc7c4ef7 typo in alignment 3 years ago
Ben Hansen ef72161771 Merge branch 'master' of github.com:sotrh/learn-wgpu 3 years ago
Ben Hansen f13781a878 more work on alignment page 3 years ago
Ben Hansen 7a42a0d4db reworking the alignment readme 3 years ago
Ben Hansen 4ae6c3f89f added 0.12.md and examples now compile 3 years ago
Ben Hansen 2073b0fbc1 updated to 0.12 3 years ago
Niklas Eicker 064a0a5efd Some small fixes for beginner tutorials 1 to 5 3 years ago
sotrh 37a097ad97
Merge pull request #276 from turboMaCk/typos
Typo fixes in main README.md
3 years ago
Ben Hansen 0eed08b713 updated news for pong web release 3 years ago
Marek Fajkus f0b3e72740
suggest clarification 3 years ago