• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1group overloading "Function Overloading"
2
3	case arrays_of_arrays_size
4		version 310 es
5		values
6		{
7			output float out0	= [ 1.0 ];
8		}
9
10		both ""
11			#version 310 es
12			precision mediump float;
13			${DECLARATIONS}
14
15			float func (float f[4][3])
16			{
17				return f[0][0];
18			}
19
20			float func (float f[4][4])
21			{
22				return f[1][1];
23			}
24
25			void main ()
26			{
27				${SETUP}
28				float[4][4] x = float[4][4] (	float[4] (0.0, 0.0, -1.0, 1.0),
29												float[4] (-1.0, 1.0, 0.0, 0.0),
30												float[4] (0.0, 0.0, -1.0, 1.0),
31												float[4] (-1.0, 1.0, 0.0, 0.0) );
32				out0 = func(x);
33				${OUTPUT}
34			}
35		""
36	end
37
38end # overloading
39