xemu/subprojects/SPIRV-Reflect/tests/push_constants/push_constant_basic_1.glsl

27 lines
419 B
GLSL

#version 460
#extension GL_EXT_buffer_reference : enable
layout(buffer_reference) buffer Node { uint x; };
struct Bar {
uint t;
uint s;
};
layout(push_constant, std430) uniform foo {
uint a;
uint b[4];
Bar bar;
Node node;
};
layout(set=0, binding=0) buffer SSBO {
uint out_value;
};
void main() {
out_value = a;
out_value = b[1];
out_value = bar.s;
out_value = node.x;
}