Initial support for diagnostic filtering rules will land/has landed in #6456. With it, Naga's WGSL input will reject the following shader:
diagnostic(off, asdf);
…with this error:
error: invalid `diagnostic(…)` rule name
┌─ ../in.wgsl:1:17
│
1 │ diagnostic(off, asdf);
│ ^^^^ not a valid diagnostic rule name
│
= note: See available trigger rules at <https://www.w3.org/TR/WGSL/#filterable-triggering-rules>.
Description
Initial support for
diagnostic
filtering rules will land/has landed in #6456. With it, Naga's WGSL input will reject the following shader:…with this error:
However, the WGSL standard states:
Repro steps
See above.
Expected vs observed behavior
warning plz
Extra materials
-
Platform
-