1/*#pragma settings NoInline*/ 2 3uniform half4 colorGreen, colorRed; 4 5half2 tricky(half x, half y, inout half2 color, half z) { 6 color.xy = color.yx; 7 return half2(x + y, z); 8} 9 10void func(inout half4 color) { 11 half2 t = tricky(1, 2, color.rb, 5); 12 color.ga = t; 13} 14 15half4 main(float2 coords) { 16 half4 result = half4(0, 1, 2, 3); 17 func(result); 18 return result == half4(2, 3, 0, 5) ? colorGreen : colorRed; 19} 20