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;
32 /* Expected output: vertex
33 layout(set=0, binding=24) uniform GlobalValues
38 layout(location=0) in vec4 position;
39 layout(location=1) in vec4 color;
47 vs_out.texcoord = position.xy*scale*0.5+0.5;
49 gl_Position = position;
53 /* Expected output: fragment
54 layout(set=0, binding=24) uniform GlobalValues
59 layout(location=0) out vec4 frag_color;
67 frag_color = vs_out.color*tint;