blob: 62847100e8f8993dd377c8612123c044c17d6021 [file] [log] [blame]
John Kessenichc9a80832015-09-12 12:17:44 -06001#version 430
2
3in float infloat;
4out float outfloat;
5
6uniform uAofA {
7 float f[2][4];
8} nameAofA[3][5];
9
10float[4][5][6] many[1][2][3];
11
12float g4[4][7];
13in float g5[5][7];
14
John Kessenich6c292d32016-02-15 20:58:50 -070015flat in int i, j, k;
John Kessenichc9a80832015-09-12 12:17:44 -060016
17float[4][7] foo(float a[5][7])
18{
19 float r[7];
20 r = a[2];
21
22 return float[4][7](a[0], a[1], r, a[3]);
23}
24
25void main()
26{
27 outfloat = 0.0;
28
29 g4 = foo(g5);
30
31// if (foo(g5) == g4)
32// ++outfloat;
33
34 float u[][7];
35 u[2][2] = 3.0;
36 float u[5][7];
37
38 foo(u);
39
40 many[i][j][k][i][j][k] = infloat;
41 outfloat += many[j][j][j][j][j][j];
42 outfloat += nameAofA[1][2].f[0][3];
43}