11 #ifndef __CE_VDBGrid__
12 #define __CE_VDBGrid__
41 const cl::Buffer &
buffer()
const {
return myBuffer; }
46 if (isValid())
return bufferSize();
58 bool isValid()
const {
return (myBuffer() != 0);}
61 void initFromVDB(
const openvdb::GridBase &grid);
65 static void *allocAlignedBufferFromVDB(
const openvdb::GridBase &grid,
69 void initFromDeviceBuffers(
81 void initFromBuffers(
const void *
data,
exint datasize,
85 void initFromSize(
exint datasize,
93 const openvdb::GridBase &grid);
103 openvdb::GridBase::Ptr createVDB()
const;
107 static openvdb::GridBase::Ptr createVDBFromAlignedBuffer(
const void *
data,
exint datasize);
111 void releaseBuffer();
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
exint getDeviceMemoryUsage() const
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
UT_VDBType storageType() const
bool hasBuffer() const
If the current OpenCL buffer is valid.