18e24c3ca2
If not literal, check specialization_constant entries for "variable_id" to link up ID with spec constant values. This maps directly to C++ API.
14 lines
177 B
GLSL
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];
|
|
}
|
|
|