* 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. */
| 131 | * on RTC_MAX_INSTANCE_LEVEL_COUNT. |
| 132 | */ |
| 133 | RTC_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 | |
| 148 | RTC_FORCEINLINE void copy_UU(const RTCRayQueryContext* context, const unsigned* src, unsigned* tgt) |
| 149 | { |
no outgoing calls
no test coverage detected