Sign in
fuchsia
/
third_party
/
glslang
/
9535746aa359358d244eb2078c98e5629c2196f6
/
.
/
Test
/
atomicAdd.comp
blob: 27dfa13b70f736042a3e8bbf4c94ad6807f98157 [
file
] [
log
] [
blame
]
#version 320 es
layout
(
local_size_x
=
1
)
in
;
struct
structType
{
int
y
[
3
];
};
layout
(
std430
)
buffer t2
{
structType f
;
}
t
;
buffer coherent
Buffer
{
int
x
;
};
int
z
;
void
main
()
{
atomicAdd
(
x
,
1
);
atomicAdd
(
t
.
f
.
y
[
1
],
1
);
atomicAdd
(
z
,
1
);
}