blob: fa222badbe9873c2dcd913fa164857febbfe0f7a [file] [log] [blame]
uniform half4 inputH4, expectedH4;
uniform half4 colorGreen, colorRed;
half4 main(float2 coords) {
bool4 inputVal = bool4(inputH4);
bool4 expected = bool4(expectedH4);
const bool4 constVal = bool4(false, false, true, false);
return (any(inputVal.xy) == expected.x &&
any(inputVal.xyz) == expected.y &&
any(inputVal.xyzw) == expected.z &&
any(constVal.xy) == expected.x &&
any(constVal.xyz) == expected.y &&
any(constVal.xyzw) == expected.z) ? colorGreen : colorRed;
}