Link Copied
In most of the cases the compiler will perform in-lining, hence there is no much differences.
If for some reason the compiler can't perform in-lining the following method is preferred.
float3 mymethod(float3,float3);
In any case, I advise you to use the "Offline compiler" tool and look for thex86 assembly.
For more complete information about compiler optimizations, see our Optimization Notice.