1#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 15flat in int i, j, k; 16 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} 44