OpenVDB 13.2.0
Loading...
Searching...
No Matches
LayoutCopy Struct Reference

Wraps a byte-for-byte copy of a handle's buffer in a handle with that handle's layout. The layout already passed a header parse or GridHandle::adopt when the source was made, so it is not checked again. This also carries grids at unaligned offsets, which the constructors accept and GridHandle::adopt rejects. Used by cuda::copyTo. More...

#include <nanovdb/GridHandle.h>

Static Public Member Functions

template<typename DstBufferT, typename SrcBufferT>
static GridHandle< DstBufferT > make (DstBufferT &&buffer, const GridHandle< SrcBufferT > &src)

Detailed Description

Wraps a byte-for-byte copy of a handle's buffer in a handle with that handle's layout. The layout already passed a header parse or GridHandle::adopt when the source was made, so it is not checked again. This also carries grids at unaligned offsets, which the constructors accept and GridHandle::adopt rejects. Used by cuda::copyTo.

Member Function Documentation

◆ make()

template<typename DstBufferT, typename SrcBufferT>
GridHandle< DstBufferT > make ( DstBufferT && buffer,
const GridHandle< SrcBufferT > & src )
inlinestatic