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