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(-125, 0, 50, 50); 11 int4 expectedB = int4(-125, 0, 0, 100); 12 return (min(intValues.x, 50) == expectedA.x && 13 min(intValues.xy, 50) == expectedA.xy && 14 min(intValues.xyz, 50) == expectedA.xyz && 15 min(intValues.xyzw, 50) == expectedA.xyzw && 16 min(constVal.x, 50) == expectedA.x && 17 min(constVal.xy, 50) == expectedA.xy && 18 min(constVal.xyz, 50) == expectedA.xyz && 19 min(constVal.xyzw, 50) == expectedA.xyzw && 20 min(intValues.x, intGreen.x) == expectedB.x && 21 min(intValues.xy, intGreen.xy) == expectedB.xy && 22 min(intValues.xyz, intGreen.xyz) == expectedB.xyz && 23 min(intValues.xyzw, intGreen.xyzw) == expectedB.xyzw && 24 min(constVal.x, constGreen.x) == expectedB.x && 25 min(constVal.xy, constGreen.xy) == expectedB.xy && 26 min(constVal.xyz, constGreen.xyz) == expectedB.xyz && 27 min(constVal.xyzw, constGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed; 28} 29