class TLAS

The FidelityFX Cauldron Framework api/platform-agnostic representation of the Top Level Acceleration Structure.

File location: framework/cauldron/framework/inc/render/rtresources.h

Methods

Return type

Description

static TLAS*

TLAS instance creation function. Implemented per api/platform to return the correct internal resource type.

const Buffer *

GetBuffer () const
Returns the backing “Buffer“ resource.

void

Build (CommandList * pCmdList) = 0
Builds the top level acceleration structure.

void

AddInstance ( const BLAS * pBlas, const Mat4 & transform, const uint32_t instanceID ) = 0
Adds a transformed BLAS instance to the TLAS instance.

Detailed description

The FidelityFX Cauldron Framework api/platform-agnostic representation of the Top Level Acceleration Structure. Only created when “BuildRayTracingAccelerationStructure” config is set to true.

Methods

CreateTLAS

Copied!

static TLAS* CreateTLAS ()

TLAS instance creation function. Implemented per api/platform to return the correct internal resource type.


GetBuffer

Copied!

const Buffer * GetBuffer () const

Returns the backing Buffer resource.


Build

Copied!

virtual void Build (CommandList * pCmdList) = 0

Builds the top level acceleration structure.


AddInstance

Copied!

virtual void AddInstance (
    const BLAS * pBlas,
    const Mat4 & transform,
    const uint32_t instanceID
) = 0

Adds a transformed BLAS instance to the TLAS instance.