1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
6 gl_Position = position;
10 layout(location=1) in vec4 color;
16 #pragma MSP stage(fragment)
17 layout(location=0) out vec4 frag_color;
23 /* Expected output: vertex
24 layout(location=0) in vec4 position;
25 layout(location=1) in vec4 color;
26 layout(location=0) out vec4 _vs_out_color;
29 gl_Position = position;
30 _vs_out_color = color;
34 /* Expected output: fragment
35 layout(location=0) out vec4 frag_color;
36 layout(location=0) in vec4 _vs_out_color;
39 frag_color = _vs_out_color;