tp::AccelerationStructure class

Represents an opaque acceleration structure used for hardware-accelerated ray tracing.

Base classes

class Ownable
A customizable base class that is used for objects returned by the API in an OwningPtr.

Constructors, destructors, conversion operators

operator const AccelerationStructureView() const
Casting operator returning the associated tp::AccelerationStructureView object.

Public functions

auto getBackingBufferView() const -> const BufferView
Returns a view of the backing buffer that is used as storage for the acceleration structure data.
auto getDeviceAddress() const -> DeviceAddress
Returns the device address of the acceleration structure that can then be used for ray tracing and acceleration structure build operations.
auto getView() const -> const AccelerationStructureView
Returns a view of this acceleration structure.
auto vkGetAccelerationStructureHandle() const -> VkAccelerationStructureHandleKHR
Returns the associated VkAccelerationStructureKHR handle.

Function documentation

tp::AccelerationStructure::operator const AccelerationStructureView() const

Casting operator returning the associated tp::AccelerationStructureView object.

DeviceAddress tp::AccelerationStructure::getDeviceAddress() const

Returns the device address of the acceleration structure that can then be used for ray tracing and acceleration structure build operations.