Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
NodeCodecQuadTreeHalfFloat< Alignment > Class Template Reference

#include <NodeCodecQuadTreeHalfFloat.h>

Classes

class  DecodingContext
 This class decodes and decompresses quad tree nodes. More...
 
class  EncodingContext
 This class encodes and compresses quad tree nodes. More...
 
struct  Header
 Header for the tree. More...
 
struct  Node
 Node structure. More...
 

Public Types

enum  : uint32 {
  TRIANGLE_COUNT_BITS = 4 , TRIANGLE_COUNT_SHIFT = 28 , TRIANGLE_COUNT_MASK = (1 << TRIANGLE_COUNT_BITS) - 1 , OFFSET_BITS = 28 ,
  OFFSET_MASK = (1 << OFFSET_BITS) - 1 , OFFSET_NON_SIGNIFICANT_BITS = 2 , OFFSET_NON_SIGNIFICANT_MASK = (1 << OFFSET_NON_SIGNIFICANT_BITS) - 1
}
 Node properties. More...
 

Static Public Attributes

static constexpr int NumChildrenPerNode = 4
 Number of child nodes of this node. More...
 
static constexpr int HeaderSize = sizeof(Header)
 Size of the header (an empty struct is always > 0 bytes so this needs a separate variable) More...
 
static constexpr int StackSize = 128
 Stack size to use during DecodingContext::sWalkTree. More...
 

Member Enumeration Documentation

◆ anonymous enum

template<int Alignment>
anonymous enum : uint32

Node properties.

Enumerator
TRIANGLE_COUNT_BITS 
TRIANGLE_COUNT_SHIFT 
TRIANGLE_COUNT_MASK 
OFFSET_BITS 
OFFSET_MASK 
OFFSET_NON_SIGNIFICANT_BITS 
OFFSET_NON_SIGNIFICANT_MASK 

Member Data Documentation

◆ HeaderSize

template<int Alignment>
constexpr int NodeCodecQuadTreeHalfFloat< Alignment >::HeaderSize = sizeof(Header)
staticconstexpr

Size of the header (an empty struct is always > 0 bytes so this needs a separate variable)

◆ NumChildrenPerNode

template<int Alignment>
constexpr int NodeCodecQuadTreeHalfFloat< Alignment >::NumChildrenPerNode = 4
staticconstexpr

Number of child nodes of this node.

◆ StackSize

template<int Alignment>
constexpr int NodeCodecQuadTreeHalfFloat< Alignment >::StackSize = 128
staticconstexpr

Stack size to use during DecodingContext::sWalkTree.


The documentation for this class was generated from the following file: