| 56 | */ |
| 57 | template<typename Context> |
| 58 | RTC_FORCEINLINE void pop(Context context) |
| 59 | { |
| 60 | assert(context); |
| 61 | #if RTC_MAX_INSTANCE_LEVEL_COUNT > 1 |
| 62 | assert(context->instStackSize > 0); |
| 63 | --context->instStackSize; |
| 64 | context->instID[context->instStackSize] = RTC_INVALID_GEOMETRY_ID; |
| 65 | #if defined(RTC_GEOMETRY_INSTANCE_ARRAY) |
| 66 | context->instPrimID[context->instStackSize] = RTC_INVALID_GEOMETRY_ID; |
| 67 | #endif |
| 68 | #else |
| 69 | assert(context->instID[0] != RTC_INVALID_GEOMETRY_ID); |
| 70 | context->instID[0] = RTC_INVALID_GEOMETRY_ID; |
| 71 | #if defined(RTC_GEOMETRY_INSTANCE_ARRAY) |
| 72 | context->instPrimID[0] = RTC_INVALID_GEOMETRY_ID; |
| 73 | #endif |
| 74 | #endif |
| 75 | } |
| 76 | |
| 77 | |
| 78 | /* Push an instance to the stack. Used for point queries*/ |
no outgoing calls
no test coverage detected