Skip to content

LiteFX::Rendering::Backends::DirectX12BottomLevelAccelerationStructure

Implements a DirectX 12 bottom-level acceleration structure (BLAS).

Synopsis

Declared in <litefx/backends/dx12.hpp>

class [[dllimport, dllexport]] DirectX12BottomLevelAccelerationStructure final
    : public IBottomLevelAccelerationStructure
    , public virtual StateResource
    , public virtual IDirectX12AccelerationStructure

Base Classes

NameDescription
IBottomLevelAccelerationStructureA structure that holds a singular entity of geometry for hardware ray-tracing.
StateResourceBase class for a resource that can be identified by a name string within a DeviceState.
IDirectX12AccelerationStructureRepresents the base interface for a DirectX 12 acceleration structure implementation.

Types

NameDescription
BoundingBoxes Stores a buffer that contains axis-aligned bounding boxes.
TriangleMesh Represents a triangle mesh.

Member Functions

NameDescription
DirectX12BottomLevelAccelerationStructure [constructor]Initializes a new DirectX 12 bottom-level acceleration structure (BLAS).
~DirectX12BottomLevelAccelerationStructure [destructor] [virtual]Destructor
operator= Assignment operators
addBoundingBox Adds a buffer containing axis-aligned bounding boxes to the BLAS.
addTriangleMesh Adds a triangle mesh to the BLAS.
boundingBoxes [virtual]Returns an array of buffers, each containing axis-aligned bounding boxes stored in the BLAS.
buffer Returns the acceleration structure backing buffer, that stores its last build.
build Performs a complete build of the acceleration structure.
clear [virtual]Clears all bounding boxes and triangle meshes from the acceleration structure.
copy Copies the acceleration structure into the acceleration structure provided by destination.
flags [virtual]Returns the flags that control how the acceleration structure should be built.
name [virtual]Returns the name of the resource.
offset [virtual]Returns the offset into buffer at which the acceleration structure is stored.
remove remove overloads
size [virtual]Returns the amount of memory in bytes inside buffer that store the acceleration structure.
triangleMeshes [virtual]Returns an array of triangle meshes contained by the BLAS.
update Performs an update on the acceleration structure.
withBoundingBox Adds a buffer containing axis-aligned bounding boxes to the BLAS.
withTriangleMesh Adds a triangle mesh to the BLAS.

Protected Member Functions

NameDescription
operator= Assignment operators
name Returns the name of the resource.

Friends

NameDescription
LiteFX::Rendering::Backends::DirectX12CommandBufferRecords commands for a DirectX12Queue
LiteFX::Rendering::Backends::DirectX12DeviceImplements a DirectX 12 graphics device.
LiteFX::Rendering::Backends::DirectX12BottomLevelAccelerationStructure::DirectX12BottomLevelAccelerationStructureImpl
LiteFX::PimplPtrA smart pointer that manages an implementation instance for a public interface class.

See Also

DirectX12TopLevelAccelerationStructure