WGSL: Cannot alias u32, vec3f, and other previously reserved words #5786
Labels
area: naga front-end
lang: WGSL
WebGPU Shading Language
naga
Shader Translator
type: bug
Something isn't working
Description
u32, vec3f and other types are no longer reserved keywords in WGSL. They're predeclared types.
So aliasing them should be valid, even if very odd.
Repro steps
Add the following test to
naga\src\front\wgsl\tests.rs
Expected vs observed behavior
I expected the shaders to compile. Actual behaviour is that it fails with
Extra materials
This may be related to #4473 ?
Platform
The text was updated successfully, but these errors were encountered: