• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1uniform half4 inputVal, expected;
2uniform half4 colorGreen, colorRed;
3
4half4 main(float2 coords) {
5    const half4 constVal1 = half4(1, 1, 1.54308063481524377, 3.7621956910836314);
6    return (acosh(inputVal.x)     == expected.x     &&
7            acosh(inputVal.xy)    == expected.xy    &&
8            acosh(inputVal.xyz)   == expected.xyz   &&
9            acosh(inputVal.xyzw)  == expected.xyzw  &&
10            acosh(constVal1.x)    == expected.x     &&
11            acosh(constVal1.xy)   == expected.xy    &&
12            acosh(constVal1.xyz)  == expected.xyz   &&
13            acosh(constVal1.xyzw) == expected.xyzw) ? colorGreen : colorRed;
14}
15