xref: /aosp_15_r20/external/skia/resources/sksl/shared/InoutParamsAreDistinct.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 colorGreen, colorRed;
2
3bool inout_params_are_distinct(inout half x, inout 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 inout_params_are_distinct(x, x) ? colorGreen : colorRed;
12}
13