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;
25 /* Expected output: vertex
26 layout(location=0) in vec4 position;
27 layout(location=1) in vec4 color;
28 layout(location=0) out vec4 _vs_out_color;
31 gl_Position = position;
32 _vs_out_color = color;
36 /* Expected output: fragment
37 layout(location=0) out vec4 frag_color;
38 layout(location=0) in vec4 _vs_out_color;
41 frag_color = _vs_out_color;