blob: 0e6624683ff2d2ed81abd607e10020af651e83f0 [file] [log] [blame]
uniform half4 inputVal, expected;
uniform half4 colorGreen, colorRed;
half4 main(float2 coords) {
const half4 constVal = half4(0);
return (cosh(inputVal.x) == expected.x &&
cosh(inputVal.xy) == expected.xy &&
cosh(inputVal.xyz) == expected.xyz &&
cosh(inputVal.xyzw) == expected.xyzw &&
cosh(constVal.x) == expected.x &&
cosh(constVal.xy) == expected.xy &&
cosh(constVal.xyz) == expected.xyz &&
cosh(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
}