1uniform half4 inputH4, expectedH4; 2uniform half4 colorGreen, colorRed; 3 4half4 main(float2 coords) { 5 bool4 input = bool4(inputH4); 6 bool4 expected = bool4(expectedH4); 7 const bool4 constVal = bool4(true, false, true, false); 8 return (not(input.xy) == expected.xy && 9 not(input.xyz) == expected.xyz && 10 not(input.xyzw) == expected.xyzw && 11 not(constVal.xy) == expected.xy && 12 not(constVal.xyz) == expected.xyz && 13 not(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed; 14} 15