1/*#pragma settings NoInline*/ 2 3uniform half4 colorRed, colorGreen, colorWhite, colorBlack; 4 5void setToColorBlack(out half4 x) { 6 x = colorBlack; 7} 8 9half4 main(float2 coords) { 10 half4 a, b, c, d; 11 12 (b = colorRed), (c = colorGreen); 13 a = (setToColorBlack(d), colorWhite); 14 15 // These uniforms only contain 1s and 0s so these multiplies should be no-ops. 16 a *= a; 17 b *= b; 18 c *= c; 19 d *= d; 20 21 return (a == colorWhite && 22 b == colorRed && 23 c == colorGreen && 24 d == colorBlack) ? colorGreen : colorRed; 25} 26