summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/spirv-cross/shaders-msl/frag/array-of-array-lut.frag
blob: c401a3fe372675fa553fc6ed8dcfb036b05c6aa3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#version 450

layout(location = 0) out float vOutput;
layout(location = 0) flat in int vIndex1;
layout(location = 1) flat in int vIndex2;

const float FOO[2][3] = float[][](float[](1.0, 2.0, 3.0), float[](4.0, 5.0, 6.0));

void main()
{
	vOutput = FOO[vIndex1][vIndex2];
}