3 layout (location = 0) in vec4 io;
\r
7 // default uniforms will be gathered into a uniform block
\r
8 // final global block will merge uniforms from all linked files
\r
9 uniform vec4 a; // declared in both stages
\r
10 uniform vec2 b1; // declaration order swapped in other stage
\r
12 uniform vec4 c1; // not delcared in other file
\r
15 // final global buffer will berge buffers from all linked files
\r
16 layout (binding = 0) uniform atomic_uint counter1;
\r
17 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