a @inline attribute would cause the function body to be copy-pasted in place of the function call.
Why would we want this? In my current understanding of driver's shader compilation, we don't. Because since shader code has very few side-effects, drivers already inline functions by themselves.
It would be nice to get some insider's confirmation of this, or study whether that is really the case and if there can be any performance implications when inlining manually.
a
@inline
attribute would cause the function body to be copy-pasted in place of the function call.Why would we want this? In my current understanding of driver's shader compilation, we don't. Because since shader code has very few side-effects, drivers already inline functions by themselves.
It would be nice to get some insider's confirmation of this, or study whether that is really the case and if there can be any performance implications when inlining manually.