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