Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::BLASTriangleDesc Struct Reference

Defines bottom level acceleration structure triangles description. More...

#include <BottomLevelAS.h>

Public Attributes

const Char * GeometryName = nullptr
 Geometry name.
 
Uint32 MaxVertexCount = 0
 The maximum vertex count in this geometry.
 
VALUE_TYPE VertexValueType = VT_UNDEFINED
 The type of vertices in this geometry, see Diligent::VALUE_TYPE.
 
Uint8 VertexComponentCount = 0
 The number of components in the vertex.
 
Uint32 MaxPrimitiveCount = 0
 The maximum primitive count in this geometry.
 
VALUE_TYPE IndexType = VT_UNDEFINED
 Index type of this geometry, see Diligent::VALUE_TYPE.
 
Bool AllowsTransforms = False
 Vulkan only, allows to use transformations in BLASBuildTriangleData.
 

Detailed Description

Defines bottom level acceleration structure triangles description.

Triangle geometry description.

Member Data Documentation

◆ GeometryName

const Char* Diligent::BLASTriangleDesc::GeometryName = nullptr

Geometry name.

The name is used to map triangle data (BLASBuildTriangleData) to this geometry.

◆ IndexType

VALUE_TYPE Diligent::BLASTriangleDesc::IndexType = VT_UNDEFINED

Index type of this geometry, see Diligent::VALUE_TYPE.

Must be VT_UINT16, VT_UINT32 or VT_UNDEFINED. If not defined then vertex array is used instead of indexed vertices.

◆ MaxPrimitiveCount

Uint32 Diligent::BLASTriangleDesc::MaxPrimitiveCount = 0

The maximum primitive count in this geometry.

The current number of primitives is defined in BLASBuildTriangleData::PrimitiveCount.

◆ MaxVertexCount

Uint32 Diligent::BLASTriangleDesc::MaxVertexCount = 0

The maximum vertex count in this geometry.

Current number of vertices is defined in BLASBuildTriangleData::VertexCount.

◆ VertexComponentCount

Uint8 Diligent::BLASTriangleDesc::VertexComponentCount = 0

The number of components in the vertex.

Remarks
Only 2 or 3 are allowed values. For 2-component formats, the third component is assumed 0.

◆ VertexValueType

VALUE_TYPE Diligent::BLASTriangleDesc::VertexValueType = VT_UNDEFINED

The type of vertices in this geometry, see Diligent::VALUE_TYPE.

Remarks
Only the following values are allowed: VT_FLOAT32, VT_FLOAT16, VT_INT16. VT_INT16 defines 16-bit signed normalized vertex components.