| 59 | } |
| 60 | |
| 61 | inline 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 // |
no outgoing calls
no test coverage detected