1 layout(constant_id=auto) const int max_colors = 2;
8 ColorInfo colors[max_colors];
11 #pragma MSP stage(vertex)
12 layout(location=0) in vec4 position;
15 gl_Position = position;
18 #pragma MSP stage(fragment)
19 layout(location=0) out vec4 frag_color;
22 frag_color = colors[0].color;
25 // Compile mode: module
28 <test>:8: Reference to specialization constant 'max_colors' in a fixed constant expression
29 <test>:8: Reference to specialization constant 'max_colors' in a fixed constant expression