1uniform float unknownInput; 2 3half4 main() { 4 @switch (int(unknownInput)) { 5 case 1: 6 return half4(1); 7 default: 8 return half4(0); 9 } 10} 11