blob: 0c3a2561a4b637519df70c6aecc83366fac49ce1 [file] [log] [blame] [edit]
diagnostic_filtering/switch_body_attribute.wgsl:5:11 warning: 'dpdx' must only be called from uniform control flow
_ = dpdx(1.0);
^^^^^^^^^
diagnostic_filtering/switch_body_attribute.wgsl:3:3 note: control flow depends on possibly non-uniform value
switch (i32(x)) @diagnostic(warning, derivative_uniformity) {
^^^^^^
diagnostic_filtering/switch_body_attribute.wgsl:3:15 note: user-defined input 'x' of 'main' may be non-uniform
switch (i32(x)) @diagnostic(warning, derivative_uniformity) {
^
@fragment
fn main(@location(0) x : f32) {
switch(i32(x)) @diagnostic(warning, derivative_uniformity) {
default: {
_ = dpdx(1.0);
}
}
}