]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/missing_geometry_layouts.glsl
Validate the presence of in/out layout qualifiers for geometry shaders
[libs/gl.git] / tests / glsl / missing_geometry_layouts.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 void main()
4 {
5         gl_Position = position;
6 }
7
8 #pragma MSP stage(geometry)
9 void main()
10 {
11         for(int i=0; i<3; ++i)
12         {
13                 passthrough[i];
14                 EmitVertex();
15         }
16 }
17
18 /* Expected error:
19 <test>:9: No primitive type qualifier found on input
20 <test>:9: No primitive type qualifier found on output
21 <test>:9: No vertex count qualifier found on output
22 */