LiteFX::Rendering::Backends::VulkanDevice::computeAccelerationStructureSizes¶
computeAccelerationStructureSizes overloads
Synopses¶
Declared in <litefx/backends/vulkan.hpp>
Computes the required amount of device memory for an IBottomLevelAccelerationStructure.
[[dllimport, dllexport]] virtual void computeAccelerationStructureSizes(
VulkanBottomLevelAccelerationStructure const& blas,
UInt64& bufferSize,
UInt64& scratchSize,
bool forUpdate = false) const override;
Computes the required amount of device memory for an ITopLevelAccelerationStructure.
[[dllimport, dllexport]] virtual void computeAccelerationStructureSizes(
VulkanTopLevelAccelerationStructure const& tlas,
UInt64& bufferSize,
UInt64& scratchSize,
bool forUpdate = false) const override;
Computes the required amount of device memory for an IBottomLevelAccelerationStructure.
[[dllimport]] virtual void computeAccelerationStructureSizes(
bottom_level_acceleration_structure_type const& blas,
UInt64& bufferSize,
UInt64& scratchSize,
bool forUpdate = false) const = 0;
Computes the required amount of device memory for an ITopLevelAccelerationStructure.
[[dllimport]] virtual void computeAccelerationStructureSizes(
top_level_acceleration_structure_type const& tlas,
UInt64& bufferSize,
UInt64& scratchSize,
bool forUpdate = false) const = 0;
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. |