| 1 |
#version 450 |
| 2 |
|
| 3 |
layout(location = 0) out float vOutput; |
| 4 |
layout(location = 0) flat in int vIndex1; |
| 5 |
layout(location = 1) flat in int vIndex2; |
| 6 |
|
| 7 |
const float FOO[2][3] = float[][](float[](1.0, 2.0, 3.0), float[](4.0, 5.0, 6.0)); |
| 8 |
|
| 9 |
void main() |
| 10 |
{ |
| 11 |
vOutput = FOO[vIndex1][vIndex2]; |
| 12 |
} |