class BLAS

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

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

Methods

Return type

Description

static BLAS*

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

const Buffer *

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

void

AddGeometry ( const Mesh * pMesh, const std::vector<VertexBufferInformation >& vertexPositions ) = 0
Adds a mesh to the BLAS instance.

void

Initializes BLAS buffer resources.

void

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

Detailed description

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

Methods

CreateBLAS

Copied!

static BLAS* CreateBLAS ()

BLAS 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.


AddGeometry

Copied!

virtual void AddGeometry (
    const Mesh * pMesh,
    const std::vector<VertexBufferInformation >& vertexPositions
) = 0

Adds a mesh to the BLAS instance.


InitBufferResources

Copied!

virtual void InitBufferResources () = 0

Initializes BLAS buffer resources.


Build

Copied!

virtual void Build (CommandList * pCmdList) = 0

Builds the bottom level acceleration structure.