|
| | GridHandle (BufferT &&buffer) |
| | Move constructor from a buffer.
|
| |
| | GridHandle ()=default |
| | Empty ctor.
|
| |
| | GridHandle (const GridHandle &)=delete |
| | Disallow copy-construction.
|
| |
| GridHandle & | operator= (const GridHandle &)=delete |
| | Disallow copy assignment operation.
|
| |
| GridHandle & | operator= (GridHandle &&other) noexcept |
| | Move copy assignment operation.
|
| |
| | GridHandle (GridHandle &&other) noexcept |
| | Move copy-constructor.
|
| |
| | ~GridHandle () override |
| | Default destructor.
|
| |
| void | reset () |
| | clear the buffer
|
| |
| BufferT & | buffer () |
| | Return a reference to the buffer.
|
| |
| const BufferT & | buffer () const |
| | Return a const reference to the buffer.
|
| |
| uint8_t * | data () override |
| | Returns a non-const pointer to the data.
|
| |
| const uint8_t * | data () const override |
| | Returns a const pointer to the data.
|
| |
| uint64_t | size () const override |
| | Returns the size in bytes of the raw memory buffer managed by this GridHandle's allocator.
|
| |
| template<typename ValueT > |
| const NanoGrid< ValueT > * | grid (uint32_t n=0) const |
| | Returns a const pointer to the n'th NanoVDB grid encoded in this GridHandle.
|
| |
| template<typename ValueT > |
| NanoGrid< ValueT > * | grid (uint32_t n=0) |
| | Returns a pointer to the n'th NanoVDB grid encoded in this GridHandle.
|
| |
| template<typename ValueT , typename U = BufferT> |
| std::enable_if< BufferTraits< U >::hasDeviceDual, constNanoGrid< ValueT > * >::type | deviceGrid (uint32_t n=0) const |
| | Return a const pointer to the n'th grid encoded in this GridHandle on the device, e.g. GPU.
|
| |
| template<typename ValueT , typename U = BufferT> |
| std::enable_if< BufferTraits< U >::hasDeviceDual, NanoGrid< ValueT > * >::type | deviceGrid (uint32_t n=0) |
| | Return a const pointer to the n'th grid encoded in this GridHandle on the device, e.g. GPU.
|
| |
| template<typename U = BufferT> |
| std::enable_if< BufferTraits< U >::hasDeviceDual, void >::type | deviceUpload (void *stream=nullptr, bool sync=true) |
| | Upload the grid to the device, e.g. from CPU to GPU.
|
| |
| template<typename U = BufferT> |
| std::enable_if< BufferTraits< U >::hasDeviceDual, void >::type | deviceDownload (void *stream=nullptr, bool sync=true) |
| | Download the grid to from the device, e.g. from GPU to CPU.
|
| |
| bool | empty () const |
| | Return true if this handle is empty, i.e. has no allocated memory.
|
| |
| | operator bool () const |
| | Return true if this handle contains a grid.
|
| |
| const GridMetaData * | gridMetaData () const |
| | Returns a const point to the grid meta data (see definition above).
|
| |
| GridType | gridType () const |
| | Returns the GridType handled by this instance, and GridType::End if empty.
|
| |
| uint32_t | gridCount () const |
| | Return the number of grids contained in this buffer.
|
| |
template<typename BufferT = HostBuffer>
class nanovdb::GridHandle< BufferT >
This class serves to manage a raw memory buffer of a NanoVDB Grid.
- Note
- It is important to note that this class does NOT depend on OpenVDB.