Sign in
dawn
/
dawn
/
87eadbb3c589eac0ad07cefe81d2ae99894a6f33
/
.
/
test
/
tint
/
diagnostic_filtering
/
if_statement_attribute.wgsl
blob: a1fbf92081c001cc1338fa8f73f6f574135ef3a9 [
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
)
if
(
x
>
0
)
{
}
else
if
(
dpdx
(
1.0
)
>
0
)
{
}
}