Variable GPU_LAYOUT_QUANTIZED_NODE_WORDConst
GPU_LAYOUT_QUANTIZED_NODE_WORD: {
leftReference: 3;
leftX: 0;
leftY: 1;
leftZ: 2;
rightReference: 7;
rightX: 4;
rightY: 5;
rightZ: 6;
} = ...
Type Declaration
-
ReadonlyleftReference: 3
-
ReadonlyleftX: 0
-
ReadonlyleftY: 1
-
ReadonlyleftZ: 2
-
ReadonlyrightReference: 7
-
ReadonlyrightX: 4
-
ReadonlyrightY: 5
-
ReadonlyrightZ: 6
Word positions inside a quantized node. Child
side(0 left, 1 right) has its three axis words at4 * sideand its reference at4 * side + 3. An axis word holds the min plane in bits 0-15 and the max plane in bits 16-31, each a step count from the frame's origin: plane =origin + q * step. A reference is the walk's stack reference: index in bits 0-27, leaf count in bits 28-31 (0 for an inner node); a missing right child is GPU_LAYOUT_EMPTY_CHILD.