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

Method create

kernels/subdiv/patch.h:161–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159 /* creates BezierPatch from a half edge */
160 template<typename Allocator>
161 __noinline static Ref create(const Allocator& alloc, const HalfEdge* edge, const char* vertices, size_t stride) {
162 return Ref(BEZIER_PATCH, new (alloc(sizeof(BezierPatch))) BezierPatch(edge,vertices,stride));
163 }
164
165 __forceinline BezierPatch (const HalfEdge* edge, const char* vertices, size_t stride)
166 : patch(edge,vertices,stride) {}

Callers

nothing calls this directly

Calls 2

allocFunction · 0.85
RefClass · 0.70

Tested by

no test coverage detected