Sign in
fuchsia
/
third_party
/
spirv-cross
/
61c603f3baa5270e04bcfb6acf83c654e3c57679
/
.
/
reference
/
shaders-no-opt
/
asm
/
comp
/
atomic-load-store.asm.comp
blob: 10a54fc8cf00d33bdc9f8b213172dc2c87c4a7c7 [
file
] [
log
] [
blame
]
#version 450
layout
(
local_size_x
=
1
,
local_size_y
=
1
,
local_size_z
=
1
)
in
;
layout
(
binding
=
0
,
std430
)
buffer SSBO
{
uint
a
;
uint
b
;
}
_5
;
void
main
()
{
uint
_20
=
atomicAdd
(
_5
.
b
,
0u
);
uint
c
=
_20
;
atomicExchange
(
_5
.
a
,
c
);
}