MCPcopy Create free account
hub / github.com/RenderKit/embree / copy_UU

Function copy_UU

kernels/common/instance_stack.h:133–146  ·  view source on GitHub ↗

* Optimized instance id stack copy. * The copy() functions will either copy full * stacks or copy only until the last valid element has been copied, depending * on RTC_MAX_INSTANCE_LEVEL_COUNT. */

Source from the content-addressed store, hash-verified

131 * on RTC_MAX_INSTANCE_LEVEL_COUNT.
132 */
133RTC_FORCEINLINE void copy_UU(const unsigned* src, unsigned* tgt)
134{
135#if (RTC_MAX_INSTANCE_LEVEL_COUNT == 1)
136 tgt[0] = src[0];
137
138#else
139 for (unsigned l = 0; l < RTC_MAX_INSTANCE_LEVEL_COUNT; ++l) {
140 tgt[l] = src[l];
141 if (RTC_MAX_INSTANCE_LEVEL_COUNT > 4)
142 if (src[l] == RTC_INVALID_GEOMETRY_ID)
143 break;
144 }
145#endif
146}
147
148RTC_FORCEINLINE void copy_UU(const RTCRayQueryContext* context, const unsigned* src, unsigned* tgt)
149{

Callers 6

operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85
HitKFunction · 0.85
copyHitToRayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected