1struct InParam { 2 float2 v; 3 float4 fragCoord : SV_POSITION; 4 int2 i2; 5}; 6 7float fun(InParam p) 8{ 9 return p.v.y + p.fragCoord.x; 10} 11 12float4 PixelShaderFunction(InParam i) : COLOR0 13{ 14 InParam local; 15 local = i; 16 float ret1 = fun(local); 17 float ret2 = fun(i); 18 19 return local.fragCoord * ret1 * ret2; 20} 21