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);
30 /* Expected output: vertex
31 layout(location=0) in vec4 position;
32 layout(location=1) in vec3 normal;
33 layout(location=0) out vec3 _vs_out_normal;
36 gl_Position = position;
37 _vs_out_normal = normal;
41 /* Expected output: fragment
42 layout(binding=23) uniform Colors
47 layout(location=0) out vec4 frag_color;
48 vec4 get_color(vec3 n)
55 layout(location=0) in vec3 _vs_out_normal;
58 frag_color = get_color(_vs_out_normal);