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