• Home
  • Raw
  • Download

Lines Matching refs:half4

2 uniform half4 colorRed, colorGreen;
8 ok = ok && (half4(half2(1), half2(2, 3)) + half4(5, 6, 7, 8)) == half4(6, 7, 9, 11);
9 ok = ok && (half4(8, half3(10)) - half4(1)) == half4(7, 9, 9, 9);
10 ok = ok && (half4(2) * half4(1, 2, 3, 4)) == half4(2, 4, 6, 8);
11 ok = ok && (half4(12) / half4(1, 2, 3, 4)) == half4(12, 6, 4, 3);
12 ok = ok && !(half4(1) == half4(2));
16 ok = ok && (half4(1) == half4(half2(1), half2(1)));
17 ok = ok && (half4(half3(1), 1) == half4(half2(1), half2(1)));
18 ok = ok && !(half4(half3(1), 1) == half4(half2(1), 1, 0));
20 ok = ok && !(half4(1) != half4(half2(1), half2(1)));
21 ok = ok && ( half4(1) == half4(1));
22 ok = ok && (-half4(1) == -half4(1));
23 ok = ok && ( half4(1) != -half4(1));
24 ok = ok && (-half4(1) != half4(1));
25 ok = ok && ( half4(0) != -half4(1));
26 ok = ok && (-half4(0) != half4(1));
27 ok = ok && (-half4(0) != -half4(1));
28 ok = ok && !(-half4(1) == half4(1));
29 ok = ok && !( half4(1) == -half4(1));
30 ok = ok && !( half4(0) == half4(1));
31 ok = ok && !( half4(0) == -half4(1));
32 ok = ok && !(-half4(0) == half4(1));
33 ok = ok && !(-half4(0) == -half4(1));
34 ok = ok && !(-half4(1) != -half4(1));
35 ok = ok && (half4(unknown) * half4(1) == half4(unknown));
36 ok = ok && (half4(1) * half4(unknown) == half4(unknown));
37 ok = ok && (half4(unknown) * half4(0) == half4(0));
38 ok = ok && (half4(0) * half4(unknown) == half4(0));
39 ok = ok && (half4(0) / half4(unknown) == half4(0)); // this should NOT optimize away
40 ok = ok && (half4(unknown) + half4(0) == half4(unknown));
41 ok = ok && (half4(0) + half4(unknown) == half4(unknown));
42 ok = ok && (half4(unknown) - half4(0) == half4(unknown));
44 half4 val = half4(unknown);
45 val += half4(1);
46 val += half4(0);
47 val -= half4(1);
48 val -= half4(0);
49 val = val + half4(1);
50 val = val + half4(0);
51 val = val - half4(1);
52 val = val - half4(0);
53 ok = ok && (val == half4(unknown));
54 val *= half4(1);
55 val *= half4(2);
56 val /= half4(1);
57 val /= half4(2);
58 val = val * half4(1);
59 val = val * half4(2);
60 val = val / half4(1);
61 val = val / half4(2);
62 ok = ok && (val == half4(unknown));
130 half4 main(float2 coords) {