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

Method create

kernels/subdiv/patch.h:111–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 /* creates BilinearPatch from a CatmullClarkPatch */
110 template<typename Allocator>
111 __noinline static Ref create(const Allocator& alloc, const CatmullClarkPatch& patch,
112 const BezierCurve* border0, const BezierCurve* border1, const BezierCurve* border2, const BezierCurve* border3) {
113 return Ref(BILINEAR_PATCH, new (alloc(sizeof(BilinearPatch))) BilinearPatch(patch));
114 }
115
116 __forceinline BilinearPatch (const CatmullClarkPatch& patch)
117 : patch(patch) {}

Callers

nothing calls this directly

Calls 2

allocFunction · 0.85
RefClass · 0.70

Tested by

no test coverage detected