Should error when shader has multiple group-bindings with the same values #5787
Labels
area: naga front-end
area: validation
Issues related to validation, diagnostics, and error handling
lang: WGSL
WebGPU Shading Language
type: bug
Something isn't working
Description
When I write a shader like
then I would expect that to result in an error. After all, the WGSL specification says
Repro steps
The shader above.
Expected vs observed behavior
I expect a shader creation error. The actual behaviour is that naga happily accepts this.
Amusingly, Chrome also seems to accept it. (At least the version of Microsoft Edge that I tested does accept this.)
Platform
The text was updated successfully, but these errors were encountered: