tp::AccelerationStructureView class

Represents a non-owning view of a tp::AccelerationStructure.

Constructors, destructors, conversion operators

AccelerationStructureView() defaulted
Creates a null acceleration structure view.

Public functions

auto getBackingBufferView() 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 isNull() const -> bool
Returns true if the viewed acceleration structure is null and not valid for use.
auto viewsJobLocalAccelerationStructure() const -> bool
Returns true if the instance views a job-local acceleration structure. Returns false if it views a persistent one.
auto vkGetAccelerationStructureHandle() const -> VkAccelerationStructureHandleKHR
Returns the associated VkAccelerationStructureKHR handle.

Friends

auto operator==(const AccelerationStructureView&, const AccelerationStructureView&) -> bool
Equality operator for tp::AccelerationStructureView.

Function documentation

DeviceAddress tp::AccelerationStructureView::getDeviceAddress() const

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