1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 layout(location=1) in vec4 color;
10 gl_Position = position;
14 #pragma MSP stage(fragment)
15 layout(location=0) out vec4 frag_color;
18 frag_color = vs_out.color;
21 /* Expected output: vertex
22 layout(location=0) in vec4 position;
23 layout(location=1) in vec4 color;
30 gl_Position = position;
35 /* Expected output: fragment
36 layout(location=0) out vec4 frag_color;
43 frag_color = vs_out.color;