[wgsl-in] Numeric suffixes + unsanitised related error #1843
Labels
area: front-end
Input formats for conversion
kind: bug
Something isn't working
lang: WGSL
WebGPU shading language
Milestone
Hi - I noticed that naga doesn't seem to correctly parse numeric suffixes (except for
u
for unsigned integers u32). According to the spec, WGSL theoretically also allowsi
(i32),f
(f32) andh
(f16, although f16 support/extension seems to be very new to the spec).code example (analogous behavior for the
i
suffix and thef
without exponent):resultant error:
Also (sorry to bombard you with issues!) - while checking the special
0x1f
case just above this section of the spec https://gpuweb.github.io/gpuweb/wgsl/#keywords, I got an error that I suspect might not have been meant to be user-exposed.code:
error:
The text was updated successfully, but these errors were encountered: