Sign in
dawn
/
dawn
/
refs/heads/chromium/5995
/
.
/
test
/
tint
/
diagnostic_filtering
/
if_statement_attribute.wgsl
blob: a1fbf92081c001cc1338fa8f73f6f574135ef3a9 [
file
] [
log
] [
blame
] [
edit
]
@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
)
{
}
}