LiteFX::Rendering::ICommandBuffer::updateAccelerationStructure¶
Updates a top-level acceleration structure.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] void updateAccelerationStructure(
ITopLevelAccelerationStructure& tlas,
SharedPtr<IBuffer const> const& scratchBuffer,
IBuffer const& buffer,
UInt64 offset = 0) const;
Description¶
This method is only supported if the GraphicsDeviceFeatures::RayTracing feature is enabled.
Exceptions¶
| Name | Thrown on |
|---|---|
ArgumentNotInitializedException | Thrown, if the provided scratchBuffer is not initialized. |
Parameters¶
| Name | Description |
|---|---|
| tlas | The top-level acceleration structure to build. |
| scratchBuffer | The scratch buffer to use for building the acceleration structure. |
| buffer | The buffer that contains the acceleration structure after the build. |
| offset | The offset into buffer at which the acceleration structure gets stored after the build. |
See Also¶
IAccelerationStructure::build