[wgsl-in] Comparing scalar with vector type incorrectly passes validation #2439
Labels
area: front-end
Input formats for conversion
kind: bug
Something isn't working
lang: WGSL
WebGPU shading language
Milestone
Spec says both sides of the comparision need to have the same type.
https://www.w3.org/TR/WGSL/#comparison-expr
The following snippet should therefore not pass validation.
Note that Chrome will already correctly reject this, whereas Naga doesn't
The text was updated successfully, but these errors were encountered: