xref: /aosp_15_r20/external/skia/resources/sksl/shared/ConstantIf.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 colorGreen, colorRed;
2
3half4 main(float2 coords) {
4    int a = 0, b = 0, c = 0, d = 0;
5    if (true) a = 1;
6    if (2 > 1) b = 2; else b = 3;
7    if (1 > 2) c = 4; else c = 5;
8    if (false) d = 6;
9    return (a == 1 && b == 2 && c == 5 && d == 0) ? colorGreen : colorRed;
10}
11