John Kessenich | c9a8083 | 2015-09-12 12:17:44 -0600 | [diff] [blame] | 1 | #version 430
|
| 2 |
|
| 3 | in float infloat;
|
| 4 | out float outfloat;
|
| 5 |
|
| 6 | uniform uAofA {
|
| 7 | float f[2][4];
|
| 8 | } nameAofA[3][5];
|
| 9 |
|
| 10 | float[4][5][6] many[1][2][3];
|
| 11 |
|
| 12 | float g4[4][7];
|
| 13 | in float g5[5][7];
|
| 14 |
|
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 15 | flat in int i, j, k;
|
John Kessenich | c9a8083 | 2015-09-12 12:17:44 -0600 | [diff] [blame] | 16 |
|
| 17 | float[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 |
|
| 25 | void 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 | }
|