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