5 // default uniforms will be gathered into a uniform block
\r
6 // final global block will merge uniforms from all linked files
\r
7 uniform vec4 a; // declared in both stages
\r
8 uniform vec2 b1; // declaration order swapped in other stage
\r
10 uniform vec4 c1; // not delcared in other file
\r
13 // final global buffer will berge buffers from all linked files
\r
14 layout (binding = 0) uniform atomic_uint counter1;
\r
15 layout (binding = 0) uniform atomic_uint counter2;
\r
20 uint j = atomicCounterIncrement(counter1) + atomicCounterDecrement(counter2);
\r
21 vec4 v = a + vec4(b1.x, b1.y, b2.x, b2.y) + c1 + d;
\r
23 return float(j) * v;
\r