Skip to content

LiteFX::Rendering::ICommandBuffer::updateAccelerationStructure

Updates a bottom-level acceleration structure.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] void updateAccelerationStructure(
    IBottomLevelAccelerationStructure& blas,
    SharedPtr<IBuffer const> const& scratchBuffer,
    IBuffer const& buffer,
    UInt64 offset = 0) const;

Description

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

Exceptions

NameThrown on
ArgumentNotInitializedExceptionThrown, if the provided scratchBuffer is not initialized.

Parameters

NameDescription
blasThe bottom-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