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