OpenVDB 13.1.0
Loading...
Searching...
No Matches
DimAndActive Struct Reference

Result of a fused ReadAccessor::getDimAndActive traversal: the getDim(ijk, ray) step size and the policy-dependent active state of ijk. More...

#include <nanovdb/NanoVDB.h>

Public Member Functions

 DimAndActive ()
 DimAndActive (uint32_t d, bool a)
uint32_t dim () const
bool active () const

Public Attributes

uint32_t packed {0u}

Detailed Description

Result of a fused ReadAccessor::getDimAndActive traversal: the getDim(ijk, ray) step size and the policy-dependent active state of ijk.

The low 31 bits store dim and bit 31 stores active, saving one live return register versus {uint32_t, bool}. The default FloatTree's upper-node maximum is 4096. The constructor supports return {dim, active}; dim() and active() decode the packed value.

Constructor & Destructor Documentation

◆ DimAndActive() [1/2]

DimAndActive ( )
inline

◆ DimAndActive() [2/2]

DimAndActive ( uint32_t d,
bool a )
inline

Member Function Documentation

◆ active()

bool active ( ) const
inline

◆ dim()

uint32_t dim ( ) const
inline

Member Data Documentation

◆ packed

uint32_t packed {0u}