![]() |
Mandrill 2025.6.0
|
Acceleration structure class for building and managing acceleration structures. More...
#include <AccelerationStructure.h>
Inherits std::enable_shared_from_this< AccelerationStructure >.
Public Member Functions | |
MANDRILL_API | AccelerationStructure (ptr< Device > pDevice, std::weak_ptr< Scene > wpScene, VkBuildAccelerationStructureFlagsKHR flags) |
Create a new acceleration structure. | |
MANDRILL_API | ~AccelerationStructure () |
Destructor for acceleration structure. | |
MANDRILL_API void | update (VkBuildAccelerationStructureFlagsKHR flags) |
Rebuild the top level of the acceleration structure to account for updates in instance transforms. | |
MANDRILL_API VkAccelerationStructureKHR | getAccelerationStructure () const |
Get the TLAS acceleration structure handle. | |
MANDRILL_API VkWriteDescriptorSet | getWriteDescriptor (uint32_t binding) const |
Get the write descriptor of the acceleration structure. | |
Acceleration structure class for building and managing acceleration structures.
|
inline |
Get the TLAS acceleration structure handle.
|
inline |
Get the write descriptor of the acceleration structure.
binding | Binding to assign to the write descriptor |
void AccelerationStructure::update | ( | VkBuildAccelerationStructureFlagsKHR | flags | ) |
Rebuild the top level of the acceleration structure to account for updates in instance transforms.