Skip to content

LiteFX::Rendering::DeviceState::add

Adds a new acceleration structure to the device state.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] void add(
    String const& id,
    UniquePtr<IAccelerationStructure>&& accelerationStructure);

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if another acceleration structure with the same id has already been added.

Parameters

NameDescription
idThe identifier for the acceleration structure.
accelerationStructureThe acceleration structure to add to the device state.