blob: 0bdaddf0b1173fe4ddfc2f7a25b724c7ee47bd81 [file] [log] [blame]
uniform half4 inputVal, expected;
uniform half4 colorGreen, colorRed;
half4 main(float2 coords) {
const half4 constVal = half4(1, 4, 16, 64);
const half4 negativeVal = half4(-1, -4, -16, -64); // should not optimize away
return (sqrt(inputVal.x) == expected.x &&
sqrt(inputVal.xy) == expected.xy &&
sqrt(inputVal.xyz) == expected.xyz &&
sqrt(inputVal.xyzw) == expected.xyzw &&
sqrt(constVal.x) == expected.x &&
sqrt(constVal.xy) == expected.xy &&
sqrt(constVal.xyz) == expected.xyz &&
sqrt(constVal.xyzw) == expected.xyzw &&
sqrt(negativeVal.x) == expected.x &&
sqrt(negativeVal.xy) == expected.xy &&
sqrt(negativeVal.xyz) == expected.xyz &&
sqrt(negativeVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
}