Lines Matching refs:half4
1 uniform half4 testInputs, colorGreen, colorRed;
3 half4 constant_swizzle() {
4 half4 v = testInputs;
9 return half4(x, y, z, w); // -1.25, 0, 0.75, 2.25
12 half4 foldable_index() {
18 return half4(x, y, z, w); // -1.25, 0, 0.75, 2.25
21 half4 foldable() {
22 half4 v = half4(0, 1, 2, 3);
27 return half4(x, y, z, w); // 0, 1, 2, 3
30 half4 main(float2 coords) {
31 half4 a = constant_swizzle();
32 half4 b = foldable_index();
33 half4 c = foldable();
35 return a == half4(-1.25, 0, 0.75, 2.25) &&
36 b == half4(-1.25, 0, 0.75, 2.25) &&
37 c == half4(0, 1, 2, 3) ? colorGreen : colorRed;