fix the spelling in whole piglit
[piglit.git] / tests / spec / arb_geometry_shader4 / linker / no-vertex-shader-only-built-in-input-varyings-ext-separate-shader-objects.shader_test
blobbb90dca41eacc9ae4498e86abb0647f5ec5c1cc4
1 # Test linking a geometry shader without vertex shader
2 # with only built-in input varyings, with EXT_separate_shader_objects
3 # (should succeed)
5 # From the ARB_geometry_shader4 spec (section 2.15.2):
6 # "Linking will also fail if the program object contains objects to form a
7 # geometry shader [...], but no objects to form a vertex shader"
9 # From the EXT_separate_shader_objects spec (Errors section):
10 # "LinkProgram NO LONGER generates an INVALID_OPERATION if the program object
11 # has a geometry shader attached and no vertex shader attached as long as the
12 # geometry shader uses only built-in varying input variables."
13 [require]
14 GL >= 2.0
15 GLSL >= 1.10
16 GL_ARB_geometry_shader4
17 GL_EXT_separate_shader_objects
19 [geometry shader]
20 #version 110
21 #extension GL_ARB_geometry_shader4: enable
23 void main()
25         for (int i = 0; i < 3; i++) {
26                 gl_Position = gl_PositionIn[i];
27                 EmitVertex();
28         }
31 [geometry layout]
32 input type GL_TRIANGLES
33 output type GL_TRIANGLE_STRIP
34 vertices out 3
36 [fragment shader]
37 #version 110
39 void main()
41         gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
44 [test]
45 link success