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

Method create

tutorials/bvh_builder/bvh_builder_device.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 static void* create (RTCThreadLocalAllocator alloc, unsigned int numChildren, void* userPtr)
50 {
51 assert(numChildren == 2);
52 void* ptr = rtcThreadLocalAlloc(alloc,sizeof(InnerNode),16);
53 return (void*) new (ptr) InnerNode;
54 }
55
56 static void setChildren (void* nodePtr, void** childPtr, unsigned int numChildren, void* userPtr)
57 {

Callers

nothing calls this directly

Calls 1

rtcThreadLocalAllocFunction · 0.85

Tested by

no test coverage detected