Open ErichDonGubler opened 1 week ago
Firefox tracking for this issue: bug 1916464
We actually already support this, we're just missing some validation.
There is one new built-in function that we are missing: textureBarrier()
. Brought up by @mikialex in https://github.com/gfx-rs/wgpu/issues/6260.
Is your feature request related to a problem? Please describe.
The WGSL spec. defines a language extension called
readonly_and_readwrite_storage_textures
, which we can and should support.Describe the solution you'd like
Implement this feature from the spec. It's not required for adherence to the spec., but there is interesting code in the wild (i.e., by ThreeJS) that already wants to use this language extension.
Describe alternatives you've considered
Additional context
Related to #6192 in that it's expected that the
requires
directive is supported with thereadonly_and_readwrite_storage_textures
identifier specifically for this feature.