• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 320 es
2layout(local_size_x = 1) in;
3
4struct structType{
5    int y[3];
6};
7
8layout(std430) buffer t2 {
9    structType f;
10} t;
11
12buffer coherent Buffer { int x; };
13int z;
14
15void main() {
16  atomicAdd(x, 1);
17  atomicAdd(t.f.y[1], 1);
18  atomicAdd(z, 1);
19}