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

Function final

kernels/subdiv/patch.h:326–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324 }
325
326 static __forceinline bool final(const CatmullClarkPatch& patch, const typename CatmullClarkRing::Type type, size_t depth)
327 {
328 const size_t max_eval_depth = (type & CatmullClarkRing::TYPE_CREASES) ? PATCH_MAX_EVAL_DEPTH_CREASE : PATCH_MAX_EVAL_DEPTH_IRREGULAR;
329//#if PATCH_MIN_RESOLUTION
330// return patch.isFinalResolution(PATCH_MIN_RESOLUTION) || depth>=max_eval_depth;
331//#else
332 return depth>=max_eval_depth;
333//#endif
334 }
335
336 template<typename Allocator>
337 __noinline static Ref create(const Allocator& alloc, CatmullClarkPatch& patch, const HalfEdge* edge, const char* vertices, size_t stride, size_t depth,

Callers 4

createFunction · 0.85
evalMethod · 0.85
eval_directMethod · 0.85
evalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected