Merge pull request #2913 from greg-lunarg/i2905
[platform/upstream/glslang.git] / Test / link.vk.inconsistentGLPerVertex.0.geom
1 #version 460 core
2
3 layout(lines_adjacency) in; 
4 layout(triangle_strip, max_vertices = 50) out;
5
6 in vs_output 
7
8         vec4 color;
9 } gs_in[]; 
10
11 out gs_output
12 {
13         vec4 color;
14 } gs_out;
15
16 void main()
17 {
18         gl_Position = gl_in[0].gl_Position;
19         gs_out.color = gs_in[0].color;
20         EmitVertex();
21         gs_out.color = gs_in[1].color;
22         gl_Position = gl_in[1].gl_Position;
23         EmitVertex();
24         gs_out.color = gs_in[0].color;
25         gl_Position = gl_in[0].gl_Position;
26         EmitVertex();
27 }