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