blob: f9eb3e0c1bba4cdc36b09796b64df9ade474a6c3 [file] [log] [blame]
uniform half4 colorRed, colorGreen;
bool test() {
bool a = 1 == 1 || 2 == 8;
bool b = 1 > 1 || 2 == 8;
bool c = 1 == 1 && 2 <= 8;
bool d = 1 == 2 && 2 == 8;
bool e = 1 == 1 ^^ 1 != 1;
bool f = 1 == 1 ^^ 1 == 1;
bool g = true == true;
bool h = false == true;
bool i = true == !false;
bool j = false == !false;
bool k = all(bool3(1 == 1, !false, 123 > 12)); // all are true
bool l = all(bool4(true, 1 == 2, true, true)); // three out of four are true
bool m = any(bool4(true, 1 == 2, true, true)); // three out of four are true
bool n = any(bool2(0 == 1, false)); // none are true
return a && !b && c && !d && e && !f && g && !h && i && !j && k && !l && m && !n;
}
half4 main(float2 coords) {
return test() ? colorGreen : colorRed;
}