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, true, false, true); 8 return (all(input.xy) == expected.x && 9 all(input.xyz) == expected.y && 10 all(input.xyzw) == expected.z && 11 all(constVal.xy) == expected.x && 12 all(constVal.xyz) == expected.y && 13 all(constVal.xyzw) == expected.z) ? colorGreen : colorRed; 14} 15