dd603eab58
Won't really be correct if the spec constant is changed outside SPIRV-Cross, but nothing we can do about that, really.
18 lines
288 B
GLSL
18 lines
288 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
precision highp int;
|
|
|
|
layout(binding = 0, std140) uniform SpecConstArray
|
|
{
|
|
vec4 samples[2];
|
|
} _15;
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
layout(location = 0) flat in mediump int Index;
|
|
|
|
void main()
|
|
{
|
|
FragColor = _15.samples[Index];
|
|
}
|
|
|