-
-
Notifications
You must be signed in to change notification settings - Fork 1
Resource: TraversalNode
Stores the Sparse Octree traversal data.
This is kept separate from the data payloads to reduce VRAM pressure during traversal.
uint32 packedBitfield
RO = Relative offset, 18b
OD = Depth TTL, 4b
BO = Bitfield occupancy, 8b
IF = Is far pointer?, 1b
IM = Is waiting for mipmap?, 1b[RO] [RO] [RO] [RO] [RO] [RO] [RO] [RO] [RO] [RO] [RO] [RO] [RO] [RO] [RO] [RO]
[RO] [RO] [OD] [OD] [OD] [OD] [BO] [BO] [BO] [BO] [BO] [BO] [BO] [BO] [IF] [IM]
TraversalNode.Intialize()
- Initializes node
TraversalNode.GetRelativeOffset()
- Gets the relative offset
TraversalNode.SetRelativeOffset(uint value)
- Sets the relative offset
TraversalNode.GetIsFarPTR()
- Returns whethernode is a far pointer
TraversalNode.GetIsWaitingForMipmap()
- Returns whethernode needs mipmapping
TraversalNode.SetIsWaitingForMipmap(uint value)
- Sets whether node needs mipmapping
TraversalNode.GetTTL()
- Returns TTL
TraversalNode.GetOccupancyBit(int index)
- Returns single occupancy bit
TraversalNode.SetOccupancyBitmap(uint bitmap)
- Sets occupancy bitmap