Files
rk35xx-android14/external/deqp-deps/glslang/Test/vk.relaxed.link2.frag
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

19 lines
630 B
GLSL

#version 460
// default uniforms will be gathered into a uniform block
// final global block will merge uniforms from all linked files
uniform vec4 a; // declared in both stages
uniform vec2 b2; // declaration order swapped in other stage
uniform vec2 b1;
uniform vec4 c2; // not delcared in other file
uniform vec4 d;
layout (binding = 0) uniform atomic_uint counter3;
layout (binding = 0) uniform atomic_uint counter2;
vec4 foo() {
uint j = atomicCounterIncrement(counter2) + atomicCounterDecrement(counter3);
vec4 v = a + vec4(b1.x, b1.y, b2.x, b2.y) + c2 + d;
return float(j) * v;
}