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

Function copyInstanceIdStack

tutorials/user_geometry/user_geometry_device.cpp:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61inline void copyInstanceIdStack(const RTCRayQueryContext* ctx, unsigned* tgt)
62{
63 tgt[0] = ctx->instID[0];
64#if (RTC_MAX_INSTANCE_LEVEL_COUNT > 1)
65 for (unsigned l = 1; l < RTC_MAX_INSTANCE_LEVEL_COUNT && l < ctx->instStackSize; ++l)
66 tgt[l] = ctx->instID[l];
67#endif
68}
69
70// ======================================================================== //
71// User defined instancing //

Callers 2

sphereIntersectFuncFunction · 0.85
sphereOccludedFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected