9 #pragma MSP stage(vertex)
10 layout(location=0) in vec4 position;
13 gl_Position = position;
17 #pragma MSP stage(fragment)
18 layout(location=0) out vec4 frag_color;
21 frag_color = (position.x>0 ? position.y>0 ? top_right : bottom_right :
22 position.y>0 ? top_left : bottom_left);
27 /* Expected output: vertex
28 layout(location=0) in vec4 position;
29 layout(location=0) out vec4 _vs_out_position;
32 gl_Position = position;
33 _vs_out_position = position;
37 /* Expected output: fragment
38 layout(set=0, binding=23) uniform Colors
45 layout(location=0) out vec4 frag_color;
46 layout(location=0) in vec4 _vs_out_position;
49 frag_color = _vs_out_position.x>0.0?(_vs_out_position.y>0.0?top_right:bottom_right):_vs_out_position.y>0.0?top_left:bottom_left;