HDK
|
Go to the source code of this file.
Classes | |
struct | cnanovdb_map |
struct | cnanovdb_Vec3F |
struct | cnanovdb_coord |
struct | cnanovdb_gridblindmetadata |
struct | cnanovdb_griddata |
struct | cnanovdb_treedata |
struct | cnanovdb_readaccessor |
Macros | |
#define | CNANOVDB_DATA_ALIGNMENT 32 |
#define | CNANOVDB_ALIGNMENT_PADDING(x, n) (-(x) & ((n)-1)) |
#define | USE_SINGLE_ROOT_KEY |
#define | CNANOVDB_GLOBAL |
#define | RESTRICT __restrict |
#define | ROOT_LEVEL 3 |
#define | DEFINEMASK_int(LOG2DIM, SIZE) |
#define | DEFINEMASK(LOG2DIM) DEFINEMASK_int(LOG2DIM, (1U << (3*LOG2DIM))) |
#define | INSTANTIATE(LOG2DIM) DEFINEMASK(LOG2DIM) |
#define | CREATE_TILEENTRY(VALUETYPE, SUFFIX) |
#define | CREATE_LEAF_NODE_int(LEVEL, LOG2DIM, CHILDTOTAL, TOTAL, MASK, VALUETYPE, STATSTYPE, SUFFIX) |
#define | CREATE_LEAF_NODE(LEVEL, LOG2DIM, TOTAL, VALUETYPE, STATSTYPE, SUFFIX) CREATE_LEAF_NODE_int(LEVEL, LOG2DIM, (TOTAL-LOG2DIM), TOTAL, ((1u << TOTAL) - 1u), VALUETYPE, STATSTYPE, SUFFIX) |
#define | CREATE_INTERNAL_NODE_int(CHILDLEVEL, LEVEL, LOG2DIM, CHILDTOTAL, TOTAL, MASK, VALUETYPE, STATSTYPE, SUFFIX) |
#define | CREATE_INTERNAL_NODE(CHILDLEVEL, LEVEL, LOG2DIM, TOTAL, VALUETYPE, STATSTYPE, SUFFIX) CREATE_INTERNAL_NODE_int(CHILDLEVEL, LEVEL, LOG2DIM, (TOTAL-LOG2DIM), TOTAL, ((1u << TOTAL) - 1u), VALUETYPE, STATSTYPE, SUFFIX) |
#define | DEFINE_KEY(KEY) uint64_t KEY; |
#define | KEYSIZE sizeof(uint64_t) |
#define | KEYSEARCH(SUFFIX) |
#define | CREATE_ROOTDATA(VALUETYPE, STATSTYPE, SUFFIX) |
#define | DEFINE_ISCACHED(LEVEL, MASK) |
#define | CREATE_ACCESSOR(VALUETYPE, SUFFIX) |
#define | CREATE_GRIDTYPE(VALUETYPE, STATSTYPE, SUFFIX) |
Enumerations | |
enum | cnanovdb_GridType { cnanovdb_GridType_Unknown = 0, cnanovdb_GridType_Float = 1, cnanovdb_GridType_Double = 2, cnanovdb_GridType_Int16 = 3, cnanovdb_GridType_Int32 = 4, cnanovdb_GridType_Int64 = 5, cnanovdb_GridType_Vec3f = 6, cnanovdb_GridType_Vec3d = 7, cnanovdb_GridType_Mask = 8, cnanovdb_GridType_FP16 = 9, cnanovdb_GridType_End = 10 } |
Functions | |
void | cnanovdb_readaccessor_init (cnanovdb_readaccessor *RESTRICT acc, const CNANOVDB_GLOBAL void *RESTRICT rootdata) |
DEFINE_ISCACHED (0,((1u<< 3)-1u)) DEFINE_ISCACHED(1 | |
Variables | |
<< 7)-1u)) DEFINE_ISCACHED(2,((1u<< 12)-1u)) inlineint32_tcnanovdb_readaccessor_computeDirty(constcnanovdb_readaccessor *RESTRICTacc, constcnanovdb_coord *RESTRICTijk){return(ijk->mVec[0]^acc->mKey.mVec[0])|(ijk-> mVec[1] acc mKey | mVec (ijk->mVec[2]^acc->mKey.mVec[2]) |
Definition at line 12 of file CNanoVDB.h.
#define CNANOVDB_DATA_ALIGNMENT 32 |
Definition at line 11 of file CNanoVDB.h.
#define CNANOVDB_GLOBAL |
Definition at line 32 of file CNanoVDB.h.
#define CREATE_ACCESSOR | ( | VALUETYPE, | |
SUFFIX | |||
) |
Definition at line 640 of file CNanoVDB.h.
#define CREATE_GRIDTYPE | ( | VALUETYPE, | |
STATSTYPE, | |||
SUFFIX | |||
) |
Definition at line 673 of file CNanoVDB.h.
#define CREATE_INTERNAL_NODE | ( | CHILDLEVEL, | |
LEVEL, | |||
LOG2DIM, | |||
TOTAL, | |||
VALUETYPE, | |||
STATSTYPE, | |||
SUFFIX | |||
) | CREATE_INTERNAL_NODE_int(CHILDLEVEL, LEVEL, LOG2DIM, (TOTAL-LOG2DIM), TOTAL, ((1u << TOTAL) - 1u), VALUETYPE, STATSTYPE, SUFFIX) |
Definition at line 457 of file CNanoVDB.h.
#define CREATE_INTERNAL_NODE_int | ( | CHILDLEVEL, | |
LEVEL, | |||
LOG2DIM, | |||
CHILDTOTAL, | |||
TOTAL, | |||
MASK, | |||
VALUETYPE, | |||
STATSTYPE, | |||
SUFFIX | |||
) |
Definition at line 370 of file CNanoVDB.h.
#define CREATE_LEAF_NODE | ( | LEVEL, | |
LOG2DIM, | |||
TOTAL, | |||
VALUETYPE, | |||
STATSTYPE, | |||
SUFFIX | |||
) | CREATE_LEAF_NODE_int(LEVEL, LOG2DIM, (TOTAL-LOG2DIM), TOTAL, ((1u << TOTAL) - 1u), VALUETYPE, STATSTYPE, SUFFIX) |
Definition at line 367 of file CNanoVDB.h.
#define CREATE_LEAF_NODE_int | ( | LEVEL, | |
LOG2DIM, | |||
CHILDTOTAL, | |||
TOTAL, | |||
MASK, | |||
VALUETYPE, | |||
STATSTYPE, | |||
SUFFIX | |||
) |
Definition at line 301 of file CNanoVDB.h.
#define CREATE_ROOTDATA | ( | VALUETYPE, | |
STATSTYPE, | |||
SUFFIX | |||
) |
Definition at line 505 of file CNanoVDB.h.
#define CREATE_TILEENTRY | ( | VALUETYPE, | |
SUFFIX | |||
) |
Definition at line 277 of file CNanoVDB.h.
#define DEFINE_ISCACHED | ( | LEVEL, | |
MASK | |||
) |
Definition at line 613 of file CNanoVDB.h.
#define DEFINE_KEY | ( | KEY | ) | uint64_t KEY; |
Definition at line 462 of file CNanoVDB.h.
#define DEFINEMASK | ( | LOG2DIM | ) | DEFINEMASK_int(LOG2DIM, (1U << (3*LOG2DIM))) |
Definition at line 68 of file CNanoVDB.h.
#define DEFINEMASK_int | ( | LOG2DIM, | |
SIZE | |||
) |
Definition at line 55 of file CNanoVDB.h.
#define INSTANTIATE | ( | LOG2DIM | ) | DEFINEMASK(LOG2DIM) |
Definition at line 71 of file CNanoVDB.h.
#define KEYSEARCH | ( | SUFFIX | ) |
Definition at line 466 of file CNanoVDB.h.
#define KEYSIZE sizeof(uint64_t) |
Definition at line 464 of file CNanoVDB.h.
#define RESTRICT __restrict |
Definition at line 33 of file CNanoVDB.h.
#define ROOT_LEVEL 3 |
Definition at line 53 of file CNanoVDB.h.
#define USE_SINGLE_ROOT_KEY |
Definition at line 14 of file CNanoVDB.h.
enum cnanovdb_GridType |
Definition at line 38 of file CNanoVDB.h.
|
inline |
Definition at line 606 of file CNanoVDB.h.
DEFINE_ISCACHED | ( | 0 | , |
((1u<< 3)-1u) | |||
) |
<<7)-1u))DEFINE_ISCACHED(2,((1u<<12)-1u))inlineint32_tcnanovdb_readaccessor_computeDirty(constcnanovdb_readaccessor*RESTRICTacc,constcnanovdb_coord*RESTRICTijk){return(ijk->mVec[0]^acc->mKey.mVec[0])|(ijk-> mVec [1] acc mKey mVec(ijk->mVec[2]^acc->mKey.mVec[2]) |
Definition at line 637 of file CNanoVDB.h.