Merge pull request #3031 from rg3igalia/sub-group-size-arb-flat-fix
[platform/upstream/glslang.git] / Test / spv.1.4.NonWritable.frag
1 #version 450
2
3 layout(location = 0) flat in int index;
4
5 layout(location = 0) out float color;
6
7 // lookup table
8 const float table[16] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
9
10 void main()
11 {
12     color = table[index];
13 }