12 #ifndef __CE_OSDRefinement__
13 #define __CE_OSDRefinement__
18 #include <opensubdiv/version.h>
25 namespace OpenSubdiv {
26 namespace OPENSUBDIV_VERSION {
28 class TopologyRefiner;
35 const OpenSubdiv::Far::TopologyRefiner &refiner,
51 bool hasStencilCL()
const;
59 int numPatchArrays()
const;
60 int numPatchesTotal()
const;
68 void initPatchBuffers();
71 int myNumCoarseVerts = 0;
72 int myNumRefinedVerts = 0;
const CE_OSDRefinementState * state() const
const cl::Buffer & patchIndexBuffer() const
CE_API UT_UniquePtr< CE_OSDRefinement > CE_OSDCreateFromRefiner(const OpenSubdiv::Far::TopologyRefiner &refiner, CE_Context &context)
const cl::Buffer & patchParamBuffer() const
const cl::Buffer & patchArrayBuffer() const
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
CE_OSDRefinementState * state()
int numCoarseVerts() const
int numRefinedVerts() const
LeafData & operator=(const LeafData &)=delete