LiteFX::Rendering::DeviceState::add¶
Adds a new acceleration structure to the device state and uses its name as identifier.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] void add(UniquePtr<IAccelerationStructure>&& accelerationStructure);
Exceptions¶
| Name | Thrown on |
|---|---|
InvalidArgumentException | Thrown, if another acceleration structure with the same id has already been added. |
Parameters¶
| Name | Description |
|---|---|
| accelerationStructure | The acceleration structure to add to the device state. |