1void main() { 2 // Basic switch test. 3 float x; 4 switch (int(sqrt(1))) { 5 case 0: 6 x = 0.0; 7 break; 8 case 1: 9 x = 1.0; 10 break; 11 default: 12 x = 2.0; 13 } 14 sk_FragColor = half4(half(x)); 15} 16