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

Function pop

kernels/common/instance_stack.h:58–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 */
57template<typename Context>
58RTC_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*/

Callers 10

intersectMethod · 0.85
occludedMethod · 0.85
pointQueryMethod · 0.85
intersectMethod · 0.85
occludedMethod · 0.85
pointQueryMethod · 0.85
rtcForwardIntersect1ExFunction · 0.85
rtcForwardIntersectNFunction · 0.85
rtcForwardOccluded1ExFunction · 0.85
rtcForwardOccludedNFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected