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

Method create

kernels/subdiv/patch.h:225–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223 {
224 template<typename Allocator>
225 __noinline static Ref create(const Allocator& alloc, Ref* children, const unsigned N) {
226 return Ref(SUBDIVIDED_GENERAL_PATCH, new (alloc(sizeof(SubdividedGeneralPatch))) SubdividedGeneralPatch(children,N));
227 }
228
229 __forceinline SubdividedGeneralPatch(Ref* children, const unsigned N) : N(N) {
230 for (unsigned i=0; i<N; i++) child[i] = children[i];

Callers

nothing calls this directly

Calls 2

allocFunction · 0.85
RefClass · 0.70

Tested by

no test coverage detected