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