third_party/spirv-cross/reference/shaders/vulkan/frag/spec-constant-block-size.vk.frag
raw| 1 | #version 310 es |
| 2 | precision mediump float; |
| 3 | precision highp int; |
| 4 | |
| 5 | #ifndef SPIRV_CROSS_CONSTANT_ID_10 |
| 6 | #define SPIRV_CROSS_CONSTANT_ID_10 2 |
| 7 | #endif |
| 8 | const int Value = SPIRV_CROSS_CONSTANT_ID_10; |
| 9 | |
| 10 | layout(binding = 0, std140) uniform SpecConstArray |
| 11 | { |
| 12 | vec4 samples[Value]; |
| 13 | } _15; |
| 14 | |
| 15 | layout(location = 0) out vec4 FragColor; |
| 16 | layout(location = 0) flat in mediump int Index; |
| 17 | |
| 18 | void main() |
| 19 | { |
| 20 | FragColor = _15.samples[Index]; |
| 21 | } |
| 22 |