1uniform half4 input, expected; 2uniform half4 colorGreen, colorRed; 3 4half4 main(float2 coords) { 5 const half4 constVal = half4(-1.5, -0.5, 0.5, 1.5); 6 return (round(input.x) == expected.x && 7 round(input.xy) == expected.xy && 8 round(input.xyz) == expected.xyz && 9 round(input.xyzw) == expected.xyzw && 10 round(constVal.x) == expected.x && 11 round(constVal.xy) == expected.xy && 12 round(constVal.xyz) == expected.xyz && 13 round(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed; 14} 15