SPIRV-Cross/reference/shaders/vulkan/frag/spec-constant-block-size.vk.frag
Hans-Kristian Arntzen 62db535b3f Update tests.
2018-11-01 11:23:48 +01:00

23 lines
418 B
GLSL

#version 310 es
precision mediump float;
precision highp int;
#ifndef SPIRV_CROSS_CONSTANT_ID_10
#define SPIRV_CROSS_CONSTANT_ID_10 2
#endif
const int Value = SPIRV_CROSS_CONSTANT_ID_10;
layout(binding = 0, std140) uniform SpecConstArray
{
vec4 samples[Value];
} _15;
layout(location = 0) out vec4 FragColor;
layout(location = 0) flat in mediump int Index;
void main()
{
FragColor = _15.samples[Index];
}