| 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]; |