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
9 GL_ARB_enhanced_layouts
10 GL_ARB_separate_shader_objects
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;
31 #extension GL_ARB_enhanced_layouts: require
32 #extension GL_ARB_separate_shader_objects: require
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;
44 color = vec4(b, a[0]);