OpenVDB 13.1.0
Loading...
Searching...
No Matches
VoxelBlockManagerBase< Log2BlockWidth > Struct Template Reference

Compile-time geometry parameters and output sentinels shared by the CPU and CUDA VoxelBlockManager decode structs. More...

#include <nanovdb/tools/VoxelBlockManager.h>

Static Public Attributes

static constexpr int BlockWidth = 1 << Log2BlockWidth
static constexpr int JumpMapLength = BlockWidth / 64
 number of uint64_t words per block in the jumpMap
static constexpr uint32_t UnusedLeafIndex = ~uint32_t{0}
 Sentinel written to leafIndex slots with no active voxel in this block.
static constexpr uint16_t UnusedVoxelOffset = ~uint16_t{0}
 Sentinel written to voxelOffset slots with no active voxel in this block.

Detailed Description

template<int Log2BlockWidth>
struct nanovdb::tools::VoxelBlockManagerBase< Log2BlockWidth >

Compile-time geometry parameters and output sentinels shared by the CPU and CUDA VoxelBlockManager decode structs.

Template Parameters
Log2BlockWidthLog2 of the number of active voxels per VBM block

Member Data Documentation

◆ BlockWidth

template<int Log2BlockWidth>
int BlockWidth = 1 << Log2BlockWidth
staticconstexpr

◆ JumpMapLength

template<int Log2BlockWidth>
int JumpMapLength = BlockWidth / 64
staticconstexpr

number of uint64_t words per block in the jumpMap

◆ UnusedLeafIndex

template<int Log2BlockWidth>
uint32_t UnusedLeafIndex = ~uint32_t{0}
staticconstexpr

Sentinel written to leafIndex slots with no active voxel in this block.

◆ UnusedVoxelOffset

template<int Log2BlockWidth>
uint16_t UnusedVoxelOffset = ~uint16_t{0}
staticconstexpr

Sentinel written to voxelOffset slots with no active voxel in this block.