1 const bool use_color = false;
3 #pragma MSP stage(vertex)
4 layout(location=0) in vec4 position;
5 layout(location=1) in vec4 color;
8 gl_Position = position;
12 #pragma MSP stage(fragment)
13 layout(location=0) out vec4 frag_color;
16 frag_color = (use_color ? color : vec4(1.0));
19 /* Expected output: vertex
20 layout(location=0) in vec4 position;
23 gl_Position = position;
27 /* Expected output: fragment
28 layout(location=0) out vec4 frag_color;
31 frag_color = vec4(1.0);