1uniform half4 testInputs; 2uniform half4 colorGreen, colorRed; 3 4half4 main(float2 coords) { 5 int4 intValues = int4(testInputs * 100); 6 int4 intGreen = int4(colorGreen * 100); 7 const int4 constVal = int4(-125, 0, 75, 225); 8 const int4 constGreen = int4(0, 100, 0, 100); 9 10 int4 expectedA = int4(50, 50, 75, 225); 11 int4 expectedB = int4(0, 100, 75, 225); 12 return (max(intValues.x, 50) == expectedA.x && 13 max(intValues.xy, 50) == expectedA.xy && 14 max(intValues.xyz, 50) == expectedA.xyz && 15 max(intValues.xyzw, 50) == expectedA.xyzw && 16 max(constVal.x, 50) == expectedA.x && 17 max(constVal.xy, 50) == expectedA.xy && 18 max(constVal.xyz, 50) == expectedA.xyz && 19 max(constVal.xyzw, 50) == expectedA.xyzw && 20 max(intValues.x, intGreen.x) == expectedB.x && 21 max(intValues.xy, intGreen.xy) == expectedB.xy && 22 max(intValues.xyz, intGreen.xyz) == expectedB.xyz && 23 max(intValues.xyzw, intGreen.xyzw) == expectedB.xyzw && 24 max(constVal.x, constGreen.x) == expectedB.x && 25 max(constVal.xy, constGreen.xy) == expectedB.xy && 26 max(constVal.xyz, constGreen.xyz) == expectedB.xyz && 27 max(constVal.xyzw, constGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed; 28} 29