7 #pragma MSP stage(vertex)
8 layout(location=0) in vec4 position;
9 layout(location=1) in vec3 normal;
12 gl_Position = position;
16 #pragma MSP stage(fragment)
17 layout(location=0) out vec4 frag_color;
18 vec4 get_color(vec3 n)
27 frag_color = get_color(normal);
32 /* Expected output: vertex
33 layout(location=0) in vec4 position;
34 layout(location=1) in vec3 normal;
35 layout(location=0) out vec3 _vs_out_normal;
38 gl_Position = position;
39 _vs_out_normal = normal;
43 /* Expected output: fragment
44 layout(set=0, binding=23) uniform Colors
49 layout(location=0) out vec4 frag_color;
50 vec4 get_color(vec3 n)
57 layout(location=0) in vec3 _vs_out_normal;
60 frag_color = get_color(_vs_out_normal);