You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wgsl-in has started/will start accepting diagnostic(…) directives in #6148. Woot! Unfortunately, wgsl-out does not emit diagnostic(…) rules, even if wgsl-in input specified them. This is unfortunate, because shaders that compiled just fine in wgsl-in might not compile after a round-trip through wgsl-out.
Repro steps
cargo run --package naga-cli -- in.wgsl out.wgsl, where in.wgsl has the following contents:
diagnostic(off, derivative_uniformity);
Expected vs observed behavior
We should re-emit diagnostic(…) rules in a semantics-preserving way, so users can feed wgsl-out output back into wgsl-in without introducing compilation errors.
Extra materials
-
Platform
-
The text was updated successfully, but these errors were encountered:
Description
wgsl-in
has started/will start acceptingdiagnostic(…)
directives in #6148. Woot! Unfortunately,wgsl-out
does not emitdiagnostic(…)
rules, even ifwgsl-in
input specified them. This is unfortunate, because shaders that compiled just fine inwgsl-in
might not compile after a round-trip throughwgsl-out
.Repro steps
cargo run --package naga-cli -- in.wgsl out.wgsl
, wherein.wgsl
has the following contents:Expected vs observed behavior
We should re-emit
diagnostic(…)
rules in a semantics-preserving way, so users can feedwgsl-out
output back intowgsl-in
without introducing compilation errors.Extra materials
-
Platform
-
The text was updated successfully, but these errors were encountered: