arb_enhanced_layouts: change vs-to-fs to use a vec4[24] instead of vec4[32]
[piglit.git] / tests / spec / arb_enhanced_layouts / linker / component-layout / vs-to-fs.shader_test
blobce68582c3fbbd8ae0dee9611951be7a98671fd67
1 # Test for successful linking between vertex and fragment shaders when
2 # component qualifiers match.
4 # Do not use an array size of 32, as this is the 3.30 spec requirement and
5 # is not a limit this test should be verifying
7 [require]
8 GLSL >= 1.40
9 GL_ARB_enhanced_layouts
10 GL_ARB_separate_shader_objects
12 [vertex shader]
13 #version 140
14 #extension GL_ARB_enhanced_layouts: require
15 #extension GL_ARB_separate_shader_objects: require
17 // consume X/Y/Z components of 24 vectors
18 layout(location = 0) out vec3 a[24];
20 // consumes W component of first vector
21 layout(location = 0, component = 3) out float b;
23 void main()
25   a[0] = vec3(1.0);
26   b = float(0.5);
29 [fragment shader]
30 #version 140
31 #extension GL_ARB_enhanced_layouts: require
32 #extension GL_ARB_separate_shader_objects: require
34 out vec4 color;
36 // consume X/Y/Z components of 24 vectors
37 layout(location = 0) in vec3 a[24];
39 // consumes W component of first vector
40 layout(location = 0, component = 3) in float b;
42 void main()
44   color = vec4(b, a[0]);
47 [test]
48 link success