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
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
6e43280d27
finished 0.13 readme
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
Ben Hansen
0fa9eb1e6f
started fragment shader terrain version
2 years ago
Ben Hansen
844a1d1287
started write up for terrain tutorial
2 years ago
sotrh
f6c701633f
Merge pull request #373 from OisinA/master
...
Replace main.rs with lib.rs in intermediate tutorials
2 years ago
sotrh
7284620506
Merge pull request #374 from Ajacmac/master
...
added wasm-bindgen-futures dependency to tutorial 1 to match code exa…
2 years ago
Ben Hansen
f7da79e4c6
fixed noise generation
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
Ben Hansen
4e129c563d
got heightmap working with compute shaders
2 years ago
OisinA
b987573e93
Replace main.rs with lib.rs
2 years ago
sotrh
fbc6591644
Merge pull request #354 from doodlewind/patch-1
...
Add Chinese translation
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
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
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
27fb79c4ab
fixes #337
2 years ago
Ben Hansen
4d33b048c2
fixes #343
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
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.
2 years ago
Ben Hansen
ef6ec265d8
Merge branch 'master' into web2
2 years ago
Ben Hansen
1135fead3a
updated intermediate tutorial docs and removing tutorial13 for maintenance
2 years ago
Ben Hansen
e8ce0e710d
tutorial12-camera running in wasm (needs input fix)
2 years ago
Yifeng Wang
cdf0b152b1
fix typo
2 years ago
Ben Hansen
0a28699d00
web examples working with vuepress
2 years ago
roudy16
2c4b3668cd
address review comment
2 years ago
roudy16
212da09b15
enable right-handed normal maps
2 years ago
sotrh
f9b6704cc4
Merge pull request #322 from rokonio/patch-4
...
Add missing half_dir
2 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
```
2 years ago
Rokonio
411702cf17
Correct an error in the normal map tutorial
...
`wgpu::BindingType::Sampler` is a tuple like variant
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
sotrh
214cdcfb68
Merge pull request #317 from rokonio/patch-1
...
Fix a typo
2 years ago
Daisuke Kato
c09edf860e
fix typo in docs/tutorial13-threading
...
Propably -> Probably
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
1104818da0
Merge pull request #295 from CatCode79/patch-1
...
Fix to Link to the "alignment" page
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
2 years ago
Andrea Postal
1a7c038eb4
Fix to Link to the "alignment" page
...
Fix to ` Link to the "alignment" page is broken #291 ` issue
2 years ago
rhysd
c81dfd34ba
fix `wgpu::SamplerBindingType` is now parameter of `wgpu::BindingType::Sampler`
2 years ago
rhysd
5d0f4ec636
fix old field name
...
`rasterization_state` is an old field name of
`wgpu::RenderPipelineDescriptor`
2 years ago
TonalidadeHidrica
125353a710
Fix typo: know -> known
2 years ago
TonalidadeHidrica
083d8f0640
Fix typo: were -> where
2 years ago
Ben Hansen
eaeb7931a1
update patrons list
2 years ago