Sign in
dawn
/
dawn
/
8917c648bdd68007c96b8ca9995533cc3ee995c2
/
.
/
test
/
tint
/
bug
/
tint
/
2147.wgsl.expected.wgsl
blob: dfb1f4d64ae16eef62f4f295b41836dbe22951c0 [
file
] [
log
] [
blame
]
@group
(
0
)
@binding
(
0
)
var
<
storage
,
read_write
>
S
:
atomic
<i32>
;
@fragment
fn main
()
->
@location
(
0
)
vec4f
{
if
(
false
)
{
discard
;
}
let
old_value
=
atomicCompareExchangeWeak
(&(
S
),
0i
,
1i
).
old_value
;
return
vec4f
(
f32
(
old_value
));
}