#include <CE_VDBGrid.h>
|  | 
| static void * | allocAlignedBufferFromVDB (const openvdb::GridBase &grid, exint &size) | 
|  | 
| static void | buildTileStartsArray (UT_Array< UT_Vector3i > &starts, exint &leafcount, exint &lowercount, exint &uppercount, const openvdb::GridBase &grid) | 
|  | Utility function to build an tilestart array from a grid.  More... 
 | 
|  | 
| static void | buildTileStartsArray (UT_Array< UT_Vector3i > &starts, exint &leafcount, exint &lowercount, exint &uppercount, const CE_BufferHostByte &cpugrid) | 
|  | Utility function to build an tilestart array from a nanovdb on cpu.  More... 
 | 
|  | 
| static openvdb::GridBase::Ptr | createVDBFromAlignedBuffer (const void *data, exint datasize) | 
|  | 
Definition at line 28 of file CE_VDBGrid.h.
 
  
  | 
        
          | CE_VDBGrid::CE_VDBGrid | ( |  | ) |  |  | inline | 
 
 
  
  | 
        
          | CE_VDBGrid::~CE_VDBGrid | ( |  | ) |  |  | inline | 
 
 
  
  | 
        
          | static void* CE_VDBGrid::allocAlignedBufferFromVDB | ( | const openvdb::GridBase & | grid, |  
          |  |  | exint & | size |  
          |  | ) |  |  |  | static | 
 
Builds a CPU buffer from the VDB provided: The result is SYSamalloc so must be SYSafreed. 
 
 
Return the underlying OpenCL buffer that can be used in kernel invocations. 
Definition at line 41 of file CE_VDBGrid.h.
 
 
  
  | 
        
          | exint CE_VDBGrid::bufferSize | ( |  | ) | const |  | inline | 
 
 
Utility function to build an tilestart array from a grid. 
 
 
Utility function to build an tilestart array from a nanovdb on cpu. 
 
 
Deep copy from another grid into this, if readsrc is false, will only allocate matching size. 
 
 
      
        
          | openvdb::GridBase::Ptr CE_VDBGrid::createVDB | ( |  | ) | const | 
      
 
Create a VDB grid from the CE VDB grid. 
 
 
  
  | 
        
          | static openvdb::GridBase::Ptr CE_VDBGrid::createVDBFromAlignedBuffer | ( | const void * | data, |  
          |  |  | exint | datasize |  
          |  | ) |  |  |  | static | 
 
Create a VDB grid from generic memory. NanoVDB requires 32 byte aligned buffers. 
 
 
  
  | 
        
          | exint CE_VDBGrid::getDeviceMemoryUsage | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | bool CE_VDBGrid::hasBuffer | ( |  | ) | const |  | inline | 
 
If the current OpenCL buffer is valid. 
Definition at line 57 of file CE_VDBGrid.h.
 
 
Initialize from a memory pointer and size. This will blocking-write to GPU data. 
 
 
Initialize the CE_VDBGrid from the supplied buffers of a nanovdb. 
 
 
Initialize from a given size, allocating only assuming later code will write to it.. 
 
 
      
        
          | void CE_VDBGrid::initFromVDB | ( | const openvdb::GridBase & | grid | ) |  | 
      
 
Initialize the CE_VDBGrid from the supplied VDB grid. 
 
 
  
  | 
        
          | bool CE_VDBGrid::isValid | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | void CE_VDBGrid::releaseBuffer | ( |  | ) |  |  | protected | 
 
 
Replaces the map transform with the provided one. 
 
 
  
  | 
        
          | exint CE_VDBGrid::myBufferSize = -1 |  | protected | 
 
 
The documentation for this class was generated from the following file: