1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 layout(location=1) in vec4 color;
11 vs_out.texcoord = position.xy*0.5+0.5;
13 gl_Position = position;
16 #pragma MSP stage(fragment)
17 layout(location=0) out vec4 frag_color;
20 frag_color = vs_out.color;
23 /* Expected output: vertex
24 layout(location=0) in vec4 position;
25 layout(location=1) in vec4 color;
33 vs_out.texcoord = position.xy*0.5+0.5;
35 gl_Position = position;
39 /* Expected output: fragment
40 layout(location=0) out vec4 frag_color;
48 frag_color = vs_out.color;