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