LiteFX::Rendering::DeviceState::accelerationStructure¶
Returns an acceleration structure from the device state.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] IAccelerationStructure& accelerationStructure(String const& id) const;
Exceptions¶
| Name | Thrown on |
|---|---|
InvalidArgumentException | Thrown, if no acceleration structure has been added for the provided id. |
Return Value¶
A reference of the acceleration structure.
Parameters¶
| Name | Description |
|---|---|
| id | The identifier associated with the acceleration structure. |