Support diagnostic filters in WGSL (i.e., the @diagnostic(…)
attribute)
#5320
Labels
area: correctness
We're behaving incorrectly
kind: diagnostics
Error message should be better
lang: WGSL
WebGPU Shading Language
naga
Shader Translator
We currently do not support the
@diagnostic(…)
attribute/diagnostic(…)
module statement (AKA "diagnostic filters" in the WebGPU spec.). This is a rather complicated subsystem, but it's exciting to have robust management of diagnostics in WGSL a la Rust. An example of how this is used from the spec.:Relevant part of the spec.: Diagnostics, section 2.3
An initial implementation of this should include the
derivative_uniformity
rule, as the only current example of filterable trigger rules that can be managed per the spec.The text was updated successfully, but these errors were encountered: