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;
17 /* Expected output: vertex
18 layout(location=0) in vec4 position;
19 layout(location=1) in vec4 color;
20 layout(location=0) out vec4 _vs_out_color;
23 gl_Position = position;
24 _vs_out_color = color;
28 /* Expected output: fragment
29 layout(location=0) out vec4 frag_color;
30 layout(location=0) in vec4 _vs_out_color;
33 frag_color = _vs_out_color;