1uniform int value; 2 3inline half4 switchy(int v) { 4 half4 result = half4(1.0); 5 switch (v) { 6 case 0: result = half4(0.5); 7 } 8 return result; 9} 10 11void main() { 12 sk_FragColor = switchy(value); 13} 14