Sign in
dawn
/
dawn
/
3d64565e2eb8fe4a377b18e288edac70d28d586f
/
.
/
test
/
tint
/
statements
/
discard
/
non_uniform.wgsl
blob: 06c9927876df56c837da761907b265bc7cf33c20 [
file
] [
log
] [
blame
]
@group
(
0
)
@binding
(
0
)
var
<
storage
,
read_write
>
non_uniform_global
:
i32
;
@group
(
0
)
@binding
(
1
)
var
<
storage
,
read_write
>
output
:
f32
;
@fragment
fn main
()
{
if
(
non_uniform_global
<
0
)
{
discard
;
}
output
=
dpdx
(
1.0
);
}