]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/redundant_geometry_gl_position.glsl
Check the flat qualifier from the correct member
[libs/gl.git] / tests / glsl / redundant_geometry_gl_position.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 void main()
4 {
5         gl_Position = position;
6         gl_Position = position;
7 }
8
9 #pragma MSP stage(geometry)
10 layout(triangles) in;
11 layout(triangle_strip, max_vertices=3) out;
12 void main()
13 {
14         for(int i=0; i<3; ++i)
15         {
16                 passthrough[i];
17                 gl_Position = gl_in[i].gl_Position;
18                 EmitVertex();
19         }
20 }
21
22 // Target API: Vulkan
23
24 /* Expected output: vertex
25 layout(location=0) in vec4 position;
26 void main()
27 {
28         gl_Position = position;
29 }
30 */
31
32 /* Expected output: geometry
33 layout(triangles) in;
34 layout(triangle_strip, max_vertices=3) out;
35 void main()
36 {
37         for(int i = 0; i<3; ++i)
38         {
39                 gl_Position = gl_in[i].gl_Position;
40                 EmitVertex();
41         }
42 }
43 */