1 2out vec4 sk_FragColor; 3uniform vec4 colorRed; 4uniform vec4 colorGreen; 5vec4 main() { 6 bool ok = true; 7 int a = 1; 8 a = a + a; 9 a += a; 10 a = a + a; 11 a += a; 12 a = a + a; 13 ok = ok && a == 32; 14 int b = 10; 15 b = b - 2; 16 b -= 2; 17 b = b - 1; 18 b -= 3; 19 ok = ok && b == 2; 20 int c = 2; 21 c = c * c; 22 c *= c; 23 c = c * 4; 24 c *= 2; 25 ok = ok && c == 128; 26 int d = 256; 27 d = d / 2; 28 d /= 2; 29 d = d / 4; 30 d /= 4; 31 ok = ok && d == 4; 32 return ok ? colorGreen : colorRed; 33} 34