Debian Codegraph @

third_party/spirv-cross/shaders-msl/frag/spec-constant-block-size.frag

raw
1 #version 310 es
2 precision mediump float;
3
4 layout(constant_id = 10) const int Value = 2;
5 layout(binding = 0) uniform SpecConstArray
6 {
7 vec4 samples[Value];
8 };
9
10 layout(location = 0) flat in int Index;
11 layout(location = 0) out vec4 FragColor;
12
13 void main()
14 {
15 FragColor = samples[Index];
16 }
17