This repository was archived by the owner on Jan 29, 2025. It is now read-only.
[wgsl-in] attributes appearing more than once are not rejected #2425
Labels
area: front-end
Input formats for conversion
area: validation
Validation of the IR
lang: WGSL
WebGPU shading language
Milestone
This shader compiles:
even though the
location
attribute appears more than once on the struct member and the return type of the entry point (in this case, the last specified location appears to be taken into account). The WGSL spec says in 11. Attributes:I'm not sure whether this means a diagnostic is required, or even that the compilation should fail.
The text was updated successfully, but these errors were encountered: