Sign in
dawn
/
dawn
/
87eadbb3c589eac0ad07cefe81d2ae99894a6f33
/
.
/
test
/
tint
/
diagnostic_filtering
/
switch_statement_attribute.wgsl
blob: 34e342edd19d64e11f91fbfbd2644b433d8a7d57 [
file
] [
log
] [
blame
]
@group
(
0
)
@binding
(
1
)
var
t
:
texture_2d
<f32>
;
@group
(
0
)
@binding
(
2
)
var
s
:
sampler
;
@fragment
fn main
(
@location
(
0
)
x
:
f32
)
{
@diagnostic
(
warning
,
derivative_uniformity
)
switch
(
i32
(
x
==
0.0
&&
dpdx
(
1.0
)
==
0.0
))
{
default
{
}
}
}