1uniform half4 testInputs; 2uniform half4 colorGreen, colorRed; 3 4half4 main(float2 coords) { 5 const half4 constVal = half4(-1.25, 0, 0.75, 2.25); 6 const half4 constGreen = half4(0, 1, 0, 1); 7 half4 expectedA = half4(0, 0, 1, 1); 8 half4 expectedB = half4(1, 1, 0, 0); 9 10 return (step(0.5, testInputs.x) == expectedA.x && 11 step(0.5, testInputs.xy) == expectedA.xy && 12 step(0.5, testInputs.xyz) == expectedA.xyz && 13 step(0.5, testInputs.xyzw) == expectedA.xyzw && 14 step(0.5, constVal.x) == expectedA.x && 15 step(0.5, constVal.xy) == expectedA.xy && 16 step(0.5, constVal.xyz) == expectedA.xyz && 17 step(0.5, constVal.xyzw) == expectedA.xyzw && 18 step(testInputs.x, constGreen.x) == expectedB.x && 19 step(testInputs.xy, constGreen.xy) == expectedB.xy && 20 step(testInputs.xyz, constGreen.xyz) == expectedB.xyz && 21 step(testInputs.xyzw, constGreen.xyzw) == expectedB.xyzw && 22 step(constVal.x, constGreen.x) == expectedB.x && 23 step(constVal.xy, constGreen.xy) == expectedB.xy && 24 step(constVal.xyz, constGreen.xyz) == expectedB.xyz && 25 step(constVal.xyzw, constGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed; 26} 27