1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
5 gl_Position = position;
6 gl_Position = position;
9 #pragma MSP stage(geometry)
11 layout(triangles, max_vertices=3) out;
14 for(int i=0; i<3; ++i)
17 gl_Position = gl_in[i].gl_Position;
22 /* Expected output: vertex
23 layout(location=0) in vec4 position;
26 gl_Position = position;
30 /* Expected output: geometry
32 layout(triangles, max_vertices=3) out;
35 for(int i = 0; i<3; ++i)
37 gl_Position = gl_in[i].gl_Position;