Commit Graph

456 Commits

Author SHA1 Message Date
Ben Hansen
df157d7e39
Merge pull request #458 from doup/patch-2
Add missing `view_formats`
2023-05-26 16:35:23 -06:00
lubomirkurcak
aa867e1de8
Fix typo 2023-04-06 20:16:40 +02:00
Benjamin Hansen
2898a72bc0 switched to custom wasm-builder instead of wasm-pack for examples 2023-03-25 14:16:07 -06:00
Blatko1
9c2250bd0f
fix not working link 2023-03-24 21:28:37 +01:00
Asier Illarramendi
41d3b9daa3
Add missing view_formats
In "Depth Buffer" chapter.
2023-02-20 18:06:46 +01:00
Benjamin Hansen
7d3961cb76 fixes #453 2023-02-11 17:52:17 -07:00
Aaron Clarke
dbd18ddf00 Minor spelling error and capitalization fix. 2023-02-03 23:26:24 -08:00
Benjamin Hansen
9f2ecaec4a added view_formats details to the docs 2023-02-01 21:26:30 -07:00
Benjamin Hansen
7227f8d169 changes for 0.15 2023-01-30 11:09:26 -07:00
sotrh
c17e90d926
Merge pull request #433 from erwanvivien/explain-objmodel
feat: added more information on obj_model setup
2023-01-28 12:11:43 -07:00
sotrh
f94875e2a8
Merge branch 'master' into master 2023-01-14 15:09:54 -07:00
Benjamin Hansen
09207e9403 changed State to own window 2023-01-14 13:32:51 -07:00
Benjamin Hansen
a9230e981e upgraded dependencies 2023-01-14 12:43:55 -07:00
sotrh
664322e65a
Merge pull request #430 from erwanvivien/compare-function-doc
feat: added link to CompareFunction
2023-01-14 11:54:43 -07:00
sotrh
635522756b
Update README.md
Better grammar
2023-01-14 11:54:20 -07:00
erwanvivien
ad1776684b
fix: typo indicdes -> indices 2023-01-14 19:49:41 +01:00
sotrh
cdf276a5f5
Merge pull request #431 from erwanvivien/depth-texture-state-field
fix: Missing struct field
2023-01-14 11:47:40 -07:00
sotrh
54cc0f086c
Merge pull request #434 from nekodjin/master
fix: update outdated info on getting supported formats.
2023-01-14 11:44:18 -07:00
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`.
2023-01-14 11:42:49 -07:00
Kyle Travis
656f4d7691
Tiny typo in window tutorial 2023-01-06 23:12:46 -05:00
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`
2023-01-06 06:03:27 +09:00
Avery R
3863322aee
update info on getting supported formats
Replace the outdated information about `get_preferred_format` with current information on `get_supported_formats`.
2023-01-04 11:53:30 -05:00
erwanvivien
2876a669f1
feat: added more information on obj_model setup 2023-01-01 21:28:54 +01:00
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
2022-12-29 00:16:58 +01:00
erwanvivien
c125d28743
feat: added link to CompareFunction
It adds more insights to what the field are for
2022-12-29 00:08:31 +01:00
erwanvivien
3e775e000d
feat: added link to CompareFunction
It adds more insights to what the field are for
2022-12-29 00:07:15 +01:00
Benjamin Hansen
3fde56d264 fixes #429 2022-12-28 14:35:17 -07:00
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
2022-12-25 19:25:04 +01:00
erwanvivien
5d8b5b5852
Merge branch 'sotrh:master' into master 2022-12-25 19:15:57 +01:00
Benjamin Hansen
714ea27bc2 adding wgpu to fully qualify include_wgsl! macro as part of #423 2022-12-10 12:18:58 -07:00
erwanvivien
50ca6f8b22
fix: added missing curly to match 2022-11-08 23:25:44 +01:00
erwanvivien
424bcfeed1
fix: removed curly, repeated prototype 2022-11-08 23:23:16 +01:00
erwanvivien
e1f756af65
fix: missing ending curly brace 2022-11-08 23:15:34 +01:00
nextdorf
bb97a1a48e Added correct color conversation between rgb and srgb (source:
https://en.wikipedia.org/wiki/SRGB#Computing_the_transfer_function) in
buffer tutorial
2022-11-06 12:13:26 +01:00
sotrh
4f202d376d
Merge pull request #409 from PhelixOchieng/master
Fix: Could not append canvas error when running on wasm
2022-10-20 10:12:57 -06:00
sotrh
b15873c392
Merge pull request #412 from Baguettifer/master
changed hexagon to pentagon
2022-10-20 10:10:09 -06:00
sotrh
73e7ee2a77
Merge pull request #413 from relrelb/patch-1
Change link to HTTPS
2022-10-20 10:09:25 -06:00
Ben Hansen
3f99b965a9 migrated to 0.14 2022-10-20 10:07:03 -06:00
relrelb
f6beebae17
Change link to HTTPS 2022-10-14 17:45:39 +03:00
Baguettifer
ce34941f31 changed hexagon to pentagon 2022-10-14 14:57:34 +11:00
Phelix
3c09140b80
Fix: Could not append canvas error when running on wasm 2022-10-06 14:03:42 +03:00
sotrh
b2fad645de
Merge branch 'master' into evik42-0.13-update-fix 2022-09-30 19:04:41 -06:00
sotrh
954ccc4bad
Merge pull request #397 from jinleili/numbers
Fix 2 numbers on tutorial4 doc
2022-09-30 19:02:14 -06:00
sotrh
5f75beab03
Merge pull request #398 from jinleili/step_mode
Make `step_mode` easier to understand
2022-09-30 19:01:30 -06:00
sotrh
5dc50f0200
Merge pull request #399 from jinleili/filter
Fix the descriptions of `mag_filter` and `min_filter` fields
2022-09-30 19:00:57 -06:00
sotrh
4726bb5a8c
Merge pull request #400 from Ratipoka/patch-1
Remove typo : extra size field in State
2022-09-30 19:00:01 -06:00
sotrh
49fb49bdbf
Merge pull request #404 from jbckly/patch-1
Fix some code for Dependencies and the window
2022-09-30 18:58:56 -06:00
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
2022-09-23 17:54:23 +08:00
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`
```
2022-09-23 14:18:49 +08:00
Ratipoka
e4dbc77457
Remove typo : extra size argument in State 2022-09-02 22:54:54 +02:00