XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALBLASTriangleDescription Struct Reference

This describes the bottom level acceleration structure triangles. More...

#include <BottomLevelAS.h>

Inheritance diagram for xiiGALBLASTriangleDescription:
[legend]

Public Member Functions

 XII_DECLARE_POD_TYPE ()
 
- Public Member Functions inherited from xiiHashableStruct< xiiGALBLASTriangleDescription >
constexpr xiiHashableStruct () noexcept
 Default constructor. Initializes all bytes to zero.
 
 xiiHashableStruct (const xiiHashableStruct &other) noexcept
 Bitwise copy constructor.
 
xiiHashableStructoperator= (const xiiHashableStruct &other) noexcept
 Bitwise assignment operator.
 
bool operator== (const xiiHashableStruct &other) const noexcept
 Compares equality via raw byte comparison.
 
std::strong_ordering operator<=> (const xiiHashableStruct &other) const noexcept
 Compares ordering via raw byte comparison.
 
xiiUInt32 CalculateHash () const noexcept
 Calculates a 32-bit hash from raw bytes of the struct.
 
void Clear () noexcept
 Fills all bytes with zero.
 
bool IsZero () const noexcept
 Returns true if all bytes are zero.
 

Public Attributes

xiiStringView m_sGeometryName
 The geometry name used to map triangle data. The default is an empty string view.
 
xiiUInt32 m_uiMaxVertexCount = 0U
 The maximum vertex count in this geometry. The default is 0.
 
xiiEnum< xiiGALValueTypem_VertexValueType = xiiGALValueType::Undefined
 
xiiUInt8 m_uiVertexComponentCount = 0U
 
xiiUInt32 m_uiMaxPrimitiveCount = 0U
 The maximum primitive count in this geometry. The default is 0.
 
xiiEnum< xiiGALValueTypem_IndexType = xiiGALValueType::Undefined
 The index type of this geometry. This must be UInt16, UInt32 or Undefined. If Undefined, then the vertex array is used instead of the indexed vertices. The default is Undefined.
 

Detailed Description

This describes the bottom level acceleration structure triangles.

Member Data Documentation

◆ m_uiVertexComponentCount

xiiUInt8 xiiGALBLASTriangleDescription::m_uiVertexComponentCount = 0U

The number of components in the vertex. The default is 0.

\remarks Valid values are only 2 or 3. For 2-component formats, the third component is assumed to be 0. 

◆ m_VertexValueType

xiiEnum<xiiGALValueType> xiiGALBLASTriangleDescription::m_VertexValueType = xiiGALValueType::Undefined

The type of vertices in this geometry. The default is Undefined.

                                         \remarks Only Float32, Float16, and Int16 are valid. Int16 defines 16-bit signed-normalized vertex components. 

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