• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1uniform half4 inputVal, expected;
2uniform half4 colorGreen, colorRed;
3
4half4 main(float2 coords) {
5    const half4 constVal1 = half4(0);
6    const half4 constVal2 = half4(1);
7    return (atan(inputVal.x)                     == expected.x     &&
8            atan(inputVal.xy)                    == expected.xy    &&
9            atan(inputVal.xyz)                   == expected.xyz   &&
10            atan(inputVal.xyzw)                  == expected.xyzw  &&
11            atan(constVal1.x)                    == expected.x     &&
12            atan(constVal1.xy)                   == expected.xy    &&
13            atan(constVal1.xyz)                  == expected.xyz   &&
14            atan(constVal1.xyzw)                 == expected.xyzw  &&
15            atan(inputVal.x,     constVal2.x)    == expected.x     &&
16            atan(inputVal.xy,    constVal2.xy)   == expected.xy    &&
17            atan(inputVal.xyz,   constVal2.xyz)  == expected.xyz   &&
18            atan(inputVal.xyzw,  constVal2.xyzw) == expected.xyzw  &&
19            atan(constVal1.x,    constVal2.x)    == expected.x     &&
20            atan(constVal1.xy,   constVal2.xy)   == expected.xy    &&
21            atan(constVal1.xyz,  constVal2.xyz)  == expected.xyz   &&
22            atan(constVal1.xyzw, constVal2.xyzw) == expected.xyzw) ? colorGreen : colorRed;
23}
24