Skip to content

LiteFX::Rendering::ICommandBuffer::updateAccelerationStructure

updateAccelerationStructure overloads

Synopses

Declared in <litefx/rendering_api.hpp>

Updates a bottom-level acceleration structure.

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

» more...

Updates a top-level acceleration structure.

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

» more...

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.
tlasThe top-level acceleration structure to build.

See Also

IAccelerationStructure::build