LiteFX::Rendering::IGraphicsDevice::computeAccelerationStructureSizes¶
computeAccelerationStructureSizes overloads
Synopses¶
Declared in <litefx/rendering_api.hpp>
Computes the required amount of device memory for an IBottomLevelAccelerationStructure.
[[dllimport, dllexport]] void computeAccelerationStructureSizes(
IBottomLevelAccelerationStructure const& blas,
UInt64& bufferSize,
UInt64& scratchSize,
bool forUpdate = false) const;
Computes the required amount of device memory for an ITopLevelAccelerationStructure.
[[dllimport, dllexport]] void computeAccelerationStructureSizes(
ITopLevelAccelerationStructure const& tlas,
UInt64& bufferSize,
UInt64& scratchSize,
bool forUpdate = false) const;
Parameters¶
| Name | Description |
|---|---|
| blas | The bottom-level acceleration structure to compute the memory requirements for. |
| bufferSize | The size of the acceleration structure buffer. |
| scratchSize | The size of the scratch memory buffer. |
| forUpdate | If set to true, scratchSize will contain the amount of scratch memory required for an update. |
| tlas | The top-level acceleration structure to compute the memory requirements for. |