xref: /aosp_15_r20/external/skia/resources/sksl/runtime/ConversionConstructors.rts (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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