LiteFX::Rendering::ITopLevelAccelerationStructure::addInstance¶
Adds an instance to the TLAS.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] virtual void addInstance(Instance const& instance) = 0;
Exceptions¶
| Name | Thrown on |
|---|---|
RuntimeException | Thrown, if the acceleration structure buffers have already been allocated. |
Parameters¶
| Name | Description |
|---|---|
| instance | The instance to add to the TLAS. |