1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 layout(location=1) in vec4 color;
6 gl_Position = position;
10 #pragma MSP stage(fragment)
11 layout(location=0) out vec4 frag_color;
19 /* Expected output: vertex
20 layout(location=0) in vec4 position;
21 layout(location=1) in vec4 color;
22 layout(location=0) out vec4 _vs_out_color;
25 gl_Position = position;
26 _vs_out_color = color;
30 /* Expected output: fragment
31 layout(location=0) out vec4 frag_color;
32 layout(location=0) in vec4 _vs_out_color;
35 frag_color = _vs_out_color;