To build an acceleration structure call:
// Provided by VK_NV_ray_tracing
const VkAccelerationStructureInfoNV* pInfo,
commandBufferis the command buffer into which the command will be recorded.
pInfocontains the shared information for the acceleration structure’s structure.
instanceDatais the buffer containing an array of VkAccelerationStructureInstanceKHR structures defining acceleration structures. This parameter must be
NULLfor bottom level acceleration structures.
instanceOffsetis the offset in bytes (relative to the start of
instanceData) at which the instance data is located.
updatespecifies whether to update the
dstacceleration structure with the data in
dstis a pointer to the target acceleration structure for the build.
srcis a pointer to an existing acceleration structure that is to be used to update the
scratchis the VkBuffer that will be used as scratch memory for the build.
scratchOffsetis the offset in bytes relative to the start of
scratchthat will be used as a scratch memory.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.