Sign in
dawn
/
dawn
/
5767f435195311b3c471ecca2b0836d512a75271
/
.
/
test
/
tint
/
diagnostic_filtering
/
compound_statement_attribute.wgsl
blob: 63f5db448f5f89e7f69d33a86553bef4ceb27c8e [
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
)
{
_
=
textureSample
(
t
,
s
,
vec2
(
0
,
0
));
}
}
}