3 GL_ARB_arrays_of_arrays
7 #extension GL_ARB_separate_shader_objects: require
8 #extension GL_ARB_arrays_of_arrays: require
9 uniform vec4 incolor[4] = vec4[4](
10 vec4(1.0, 0.0, 0.0, 0.0),
11 vec4(0.0, 1.0, 0.0, 0.0),
12 vec4(0.0, 0.0, 1.0, 0.0),
13 vec4(1.0, 1.0, 1.0, 0.0)
15 in vec4 piglit_vertex;
16 out vec4 vs_data[1][1][4];
20 vs_data[0][0][0] = incolor[0];
21 vs_data[0][0][1] = incolor[1];
22 vs_data[0][0][2] = incolor[2];
23 vs_data[0][0][3] = incolor[3];
24 gl_Position = piglit_vertex;
29 #extension GL_ARB_separate_shader_objects: require
30 #extension GL_ARB_arrays_of_arrays: require
33 in vec4 vs_data[1][1][4];
39 temp[0][0] = vs_data[0][0][0];
40 temp[0][1] = vs_data[0][0][1];
41 temp[0][2] = vs_data[0][0][2];
43 out_put = temp[idx2][idx];
48 clear color 0.0 0.0 0.0 0.0
52 probe all rgba 1.0 0.0 0.0 0.0
57 probe all rgba 0.0 1.0 0.0 0.0
62 probe all rgba 0.0 0.0 1.0 0.0