To build an acceleration structure call:
void vkCmdBuildAccelerationStructureNV( VkCommandBuffer commandBuffer, const VkAccelerationStructureInfoNV* pInfo, VkBuffer instanceData, VkDeviceSize instanceOffset, VkBool32 update, VkAccelerationStructureNV dst, VkAccelerationStructureNV src, VkBuffer scratch, VkDeviceSize scratchOffset);
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 instance data that will be used to build the acceleration structure as described in Accelerator structure instances. 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.
Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.