7 #pragma MSP stage(vertex)
8 layout(location=0) in vec4 position;
9 layout(location=1) in vec4 color;
17 vs_out.texcoord = position.xy*scale*0.5+0.5;
19 gl_Position = position;
22 #pragma MSP stage(fragment)
23 layout(location=0) out vec4 frag_color;
27 frag_color = vs_out.color*tint;
30 /* Expected output: vertex
31 layout(binding=72) uniform GlobalValues
36 layout(location=0) in vec4 position;
37 layout(location=1) in vec4 color;
45 vs_out.texcoord = position.xy*scale*0.5+0.5;
47 gl_Position = position;
51 /* Expected output: fragment
52 layout(binding=72) uniform GlobalValues
57 layout(location=0) out vec4 frag_color;
65 frag_color = vs_out.color*tint;