LiteFX::Rendering::CommandBuffer::updateAccelerationStructure¶
Updates a top-level acceleration structure.
Synopsis¶
Declared in <litefx/rendering.hpp>
virtual void updateAccelerationStructure(
top_level_acceleration_structure_type& tlas,
SharedPtr<buffer_type const> const& scratchBuffer,
buffer_type const& buffer,
UInt64 offset = 0) const = 0;
Description¶
This method is only supported if the GraphicsDeviceFeatures::RayTracing feature is enabled.
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