Files
rk35xx-android14/external/deqp-deps/glslang/Test/spv.xfbOverlapOffsetCheckWithBlockAndMember.vert
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

20 lines
549 B
GLSL

#version 450
/* block definition from GLSL spec 4.60, section 4.4.2, Output Layout Qualifiers */
layout(location=5, xfb_buffer = 3, xfb_offset = 12) out block2 {
vec4 v; // v will be written to byte offsets 12 through 27 of buffer
float u; // u will be written to offset 28
layout(xfb_offset = 40) vec4 w;
vec4 x; // x will be written to offset 56, the next available offset
};
void main() {
v = vec4(1.0, 0.0, 1.0, 0.0);
u = 5.0;
w = vec4(1.0, 0.0, 0.0, 1.0);
x = vec4(5.0, 0.0, 0.0, 0.0);
gl_Position = vec4(0.0);
}