[wgsl-in] Redefinition incorrectly passes validation #1480
Labels
area: front-end
Input formats for conversion
kind: bug
Something isn't working
lang: WGSL
WebGPU shading language
Naga allows reusing a name in the same scope:
This passes validation in Naga, but this is not allowed by the WGSL spec:
Tint rejects the code with this message:
I hit this because learn wgpu book uses
main
for both vertex and fragment entry points. Tint disagrees with this, so I was caught by surprise when my shader worked in wgpu desktop but not Chrome.naga @ 5cf11ab
The text was updated successfully, but these errors were encountered: