xref: /aosp_15_r20/external/skia/resources/sksl/shared/OutParamsAreDistinct.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 colorGreen, colorRed;
2
3bool out_params_are_distinct(out half x, out half y) {
4    x = 1;
5    y = 2;
6    return x == 1 && y == 2;
7}
8
9half4 main(float2 coords) {
10    half x = 0;
11    return out_params_are_distinct(x, x) ? colorGreen : colorRed;
12}
13