1half f;
2int i;
3bool b;
4
5half4 main(float2 xy) {
6 // Covers float -> bool, bool -> float, int -> float
7 half x = bool(f) ? half(b) : half(i);
8
9 // Covers int -> bool, bool -> int, float -> int
10 int y = bool(i) ? int(b) : int(f);
11
12 return half4(x) * half(y);
13}
14