1 # Test that when an interface block contains members which are unsized
2 # arrays, the standard rules are applied in order to determine the
3 # array sizes (namely, the sizes should be inferred from the maximum
4 # array element accessed).
6 # In this test, there is a vertex shader output which uses an array
7 # size of 3, and a geometry shader input that uses an array size of 2,
8 # so link error should be produced.
15 in vec4 piglit_vertex;
22 ifc_name.foo[0] = 0.0;
23 ifc_name.foo[1] = 0.0;
24 ifc_name.foo[2] = 0.0;
25 gl_Position = piglit_vertex;
31 layout(triangle_strip, max_vertices = 3) out;
39 for (int i = 0; i < 3; i++) {
40 gl_Position = gl_in[i].gl_Position;
41 bar = vec2(ifc_name[i].foo[0], ifc_name[i].foo[1]);
52 gl_FragColor = vec4(bar, 0.0, 1.0);