LiteFX::Rendering::Backends::DirectX12CommandBuffer::buildAccelerationStructure¶
Builds a top-level acceleration structure.
Synopsis¶
Declared in <litefx/backends/dx12.hpp>
[[dllimport, dllexport]] virtual void buildAccelerationStructure(
DirectX12TopLevelAccelerationStructure& tlas,
SharedPtr<IDirectX12Buffer const> const& scratchBuffer,
IDirectX12Buffer const& buffer,
UInt64 offset = 0) const override;
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