5 layout(binding = 0) uniform atomic_uint counter;
\r
7 layout(binding = 0, offset = 4) uniform atomic_uint countArr[4];
\r
10 int arrX[gl_WorkGroupSize.x];
\r
11 int arrY[gl_WorkGroupSize.y];
\r
12 int arrZ[gl_WorkGroupSize.z];
\r
14 uint func(atomic_uint c)
\r
16 return atomicCounterIncrement(c);
\r
21 memoryBarrierAtomicCounter();
\r
23 uint val = atomicCounter(countArr[2]);
\r
24 atomicCounterDecrement(counter);
\r
25 atomicCounterIncrement(counter);
\r
31 layout (std140, binding = 0) restrict buffer dataSSB
\r
34 ivec4 n_frames_rendered;
\r
39 int origi = atomicAdd(atomi, 3);
\r
40 uint origu = atomicAnd(atomu, value);
\r
41 origu = atomicOr(atomu, 7u);
\r
42 origu = atomicXor(atomu, 7u);
\r
43 origu = atomicMin(atomu, value);
\r
44 origi = atomicMax(atomi, 7);
\r
45 origi = atomicExchange(atomi, origi);
\r
46 origu = atomicCompSwap(atomu, 10u, value);
\r
47 atomicAdd(result.n_frames_rendered.z, 1);
\r