Skip to content

LiteFX::Rendering::CommandBuffer::updateAccelerationStructure

Updates a top-level acceleration structure.

Synopsis

Declared in <litefx/rendering.hpp>

virtual void updateAccelerationStructure(
    top_level_acceleration_structure_type& tlas,
    SharedPtr<buffer_type const> const& scratchBuffer,
    buffer_type const& buffer,
    UInt64 offset = 0) const = 0;

Description

This method is only supported if the GraphicsDeviceFeatures::RayTracing feature is enabled.

Parameters

NameDescription
tlasThe top-level acceleration structure to build.
scratchBufferThe scratch buffer to use for building the acceleration structure.
bufferThe buffer that contains the acceleration structure after the build.
offsetThe offset into buffer at which the acceleration structure gets stored after the build.

See Also

IAccelerationStructure::build