SPIRV-Cross/shaders-reflection/vert/array-size-reflection.vert
Hans-Kristian Arntzen 18e24c3ca2 Reflection: Emit reflection information for array size literalness.
If not literal, check specialization_constant entries for "variable_id"
to link up ID with spec constant values. This maps directly to C++ API.
2020-01-15 16:49:19 +01:00

14 lines
177 B
GLSL

#version 450
layout(constant_id = 0) const int ARR_SIZE = 1;
layout(binding = 0, set = 1, std140) uniform u_
{
vec4 u_0[ARR_SIZE];
};
void main()
{
gl_Position = u_0[0];
}