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. The vertex shader uses an unnamed
16 in vec4 piglit_vertex;
26 gl_Position = piglit_vertex;
32 layout(triangle_strip, max_vertices = 3) out;
40 for (int i = 0; i < 3; i++) {
41 gl_Position = gl_in[i].gl_Position;
42 bar = vec2(ifc_name[i].foo[0], ifc_name[i].foo[1]);
53 gl_FragColor = vec4(bar, 0.0, 1.0);