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

Function pushInstanceId

tutorials/user_geometry/user_geometry_device.cpp:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41RTCFilterFunctionN sphereFilterFuncPtr = nullptr;
42
43inline void pushInstanceId(RTCRayQueryContext* ctx, unsigned int id)
44{
45#if RTC_MAX_INSTANCE_LEVEL_COUNT > 1
46 ctx->instID[ctx->instStackSize++] = id;
47#else
48 ctx->instID[0] = id;
49#endif
50}
51
52inline void popInstanceId(RTCRayQueryContext* ctx)
53{

Callers 2

instanceIntersectFuncFunction · 0.70
instanceOccludedFuncFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected