Harald Reingruber and Connor Fitzgerald
51b34c5b51
Improve compute shader validation error message ( #3139 )
...
* Improve compute shader validation error message
* Add entry to changelog.
* Improve error message wording (by cwfitzgerald)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
* Add credit and PR link to changelog
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2022-10-29 17:49:03 -04:00
Jim Blandy
215884184b
Reformat comments in wgpu-core. ( #3102 )
2022-10-13 18:34:44 +00:00
Mauro Gentile and Mauro Gentile
cdf6ee0c87
Updating TextureFormat matching specs ( #2954 )
...
Co-authored-by: Mauro Gentile <Mauro.Gentile@ubisoft.com >
2022-09-20 12:08:06 -04:00
Connor Fitzgerald
537c6bed4e
Add warning when using CompareFunction::*Equal without an invariant Attribute ( #2887 )
2022-07-21 02:24:49 -04:00
Jinlei Li
8063edc648
Add DEPTH24UNORM_STENCIL8 feature ( #2689 )
2022-05-30 15:29:12 -04:00
Connor Fitzgerald
c12ae0880f
Check that all vertex outputs are consumed by the fragment shader ( #2704 )
2022-05-29 23:38:11 +00:00
Jinlei Li
26f96c7dfe
Add DEPTH32FLOAT_STENCIL8 featue ( #2664 )
2022-05-17 02:11:05 -04:00
Connor Fitzgerald
e54a36ee78
Move texture-array example over to wgsl ( #2618 )
2022-04-25 18:32:53 +00:00
Connor Fitzgerald
bc850d2a0e
Bind group deduplication ( #2623 )
2022-04-25 04:19:25 +00:00
Jim Blandy
06ee8a6862
Permit non-struct, non-array types as buffers.
...
Fixes #2583 .
2022-04-18 09:50:51 -07:00
Igor Shaposhnik
eff50436f5
Update to Naga rev 1720725
2022-04-15 22:22:48 +03:00
Jim Blandy
a47b5c554f
Update to Naga rev 7aaac25f.
2022-04-13 14:41:26 -07:00
Jinlei Li
1c17d15507
Metal backend ASTC HDR formats support ( #2477 )
2022-02-15 09:43:16 -05:00
Samuel Hurel
3e0305d27d
Allow non struct buffers in wgsl ( #2451 )
...
* Bump naga
* Update examples
2022-02-05 09:53:04 -05:00
Dzmitry Malyshau
3960658529
Remove block decorations ( #2292 )
2021-12-15 12:29:37 -05:00
aloucks
70f7c375e0
Add feature gated 16-bit normalized texture support ( #2282 )
...
* Add feature gated 16-bit normalized texture support
Fixes #1934
* Query format properties only once
* Prevent supports_format from erroneously reporting false if the format wasn't queried
* Assert that 16bit norm formats also support on vulkan
* Add storage to TextureFormatInfo for 16-bit norm formats now that we check for support
2021-12-13 12:31:16 -05:00
Dzmitry Malyshau
a8caa367ee
Add limits for compute storage and max invocations
2021-12-08 21:43:41 -05:00
Dzmitry Malyshau
ddac6a369b
Validate min_binding_size at draw time ( #2195 )
2021-11-20 16:15:54 -05:00
Dzmitry Malyshau
fca82ddd7e
Populate sampling pairs for validation ( #2188 )
2021-11-18 19:06:24 -05:00
Boris-Chengbiao Zhou
3545a4fdd5
Introduce SamplerBindingType enum and fix bug in validation ( #2181 )
...
* Introduce SamplerBindingType enum and fix bug in validation
This matches the WebGPU spec more closely and also lets us implement the
validation as it's written in the spec[1]. This fixes a bug which
previously prevented the "shadow" example from running in Firefox.
Previously the validation would check whether the filtering was
appropiate even if it was a comparison sampler. This didn't matter when
running the shadow example natively since the example was setting
`filtering: true` in addition to `comparison: true`. But this failed
when running through a browser since there the used WebIDL has the
proper enum representation and eventually resulted in `filtering: false`
being passed to wgpu-core which would then fail validation.[2]
[1]: https://gpuweb.github.io/gpuweb/#bind-group-creation
[2]: https://github.com/mozilla/gecko-dev/blob/674b6582bafedc11fba6dc537769c88e9ed921d3/dom/webgpu/ipc/WebGPUChild.cpp#L502-L513
* Fix remaining examples
* Fix deno_webgpu
2021-11-16 23:08:03 -05:00
Jerónimo Sánchez
c824c8fa53
Added shader workgroup size validation ( #2142 )
2021-11-02 17:19:15 -04:00
Dzmitry Malyshau
47fb0efb2c
ETC2 texture format refactor ( #2064 )
2021-10-13 13:42:44 -04:00
Dzmitry Malyshau
dfa4948033
Update naga to 0e3fbc8
2021-10-07 08:32:01 -04:00
Dzmitry Malyshau
be6898f166
Make "Unexpected varying type" a bit less annoying
2021-09-20 12:07:01 -04:00
Connor Fitzgerald
7766ed194b
Improve CI testing code
2021-09-14 13:34:07 -04:00
Dzmitry Malyshau
ca6fd97c62
Codecoverage CI fix
2021-09-09 12:44:24 -04:00
Dzmitry Malyshau
42194168e0
Fix implicit storage texture access
2021-08-26 11:36:05 -04:00
adamnemecek
efd52e02af
use self
2021-08-20 19:36:06 -07:00
Dávid Kocsis
b0d43f9cca
add mapping for more storage formats
2021-08-19 16:03:26 +02:00
Dzmitry Malyshau
f2a18ee57c
Update naga to 1907a92
2021-08-12 23:58:19 -04:00
Zicklag
9310f264f1
Update Naga With New Storage Classes API ( #1766 )
2021-08-05 13:50:51 -04:00
Dzmitry Malyshau
2c45796d9c
Update Naga to cc91c77
2021-07-23 02:19:42 -04:00
Connor Fitzgerald
683d03a8e4
Add Rgb9e5Ufloat
2021-07-21 23:54:46 -04:00
Dzmitry Malyshau
8cd17aafe3
Switch read-only storage textures to be exclusive and behind a feature
2021-07-14 01:04:37 -04:00
Dzmitry Malyshau
ba006cfaa7
Rename ColorWrite, TextureUsage, and BufferUsage
2021-06-30 14:57:38 -04:00
Dzmitry Malyshau
568ac3fa24
Switch all bitflag names to plural
2021-06-30 14:43:36 -04:00
Dzmitry Malyshau
6f13eebb7b
hal/gles: compressed ETC2 texture support
2021-06-30 12:06:59 -04:00
Gordon-F
2873ac32d9
Remove MPL 2.0 header in files
2021-06-19 21:06:08 +03:00
Connor Fitzgerald
f49c50442f
Update naga to gfx-26
2021-06-18 13:15:28 -04:00
Dzmitry Malyshau
3109b1b63d
hal/mtl: most of the command encoding
2021-06-10 02:31:31 -04:00
Dzmitry Malyshau
3bd0e8b050
Validate storage class
2021-05-06 13:25:34 -04:00
Dzmitry Malyshau
cc2e547d48
Update gfx to the new image view API
2021-04-20 10:16:30 -04:00
Dzmitry Malyshau
cac643507b
Validate min/max blending factors
2021-04-20 09:37:07 -04:00
Dzmitry Malyshau
27f51ca252
Update naga to gfx-22, add interpolation sampling validation
2021-04-19 13:33:36 -04:00
Dzmitry Malyshau
280ba30c6c
Don't compare booleans
2021-04-18 10:25:54 -04:00
Dzmitry Malyshau
6d7ef8b8fd
Validate filtered sampling
2021-04-18 10:25:54 -04:00
Dzmitry Malyshau
78652e93f4
Make input stage errors more detailed
2021-04-13 23:01:02 -04:00
Dzmitry Malyshau
b7a0410e09
Relax vertex attribute matching, also check interpolation
2021-04-13 22:19:44 -04:00
Ashley
ff75948848
Allow non-storage textures to be able to be queried in validation ( #1324 )
...
* Improve the WrongUsage error and allow textures to use query
* Run cargo fmt
* Further improve the error
* Add more QUERY flags
2021-04-13 10:12:17 -04:00
Dzmitry Malyshau
1ba95585ba
Update naga to gfx-21
2021-04-11 01:07:46 -04:00