Sign in
dawn
/
dawn
/
refs/heads/chromium/5690
/
.
/
test
/
tint
/
diagnostic_filtering
/
function_body_attribute.wgsl
blob: 2eb25176bec0a7cf757ded7d4c817cc05d9fde7b [
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
)
{
_
=
textureSample
(
t
,
s
,
vec2
(
0
,
0
));
}
}