C Specification
To build an acceleration structure call:
void vkCmdBuildAccelerationStructureNV(
    VkCommandBuffer                             commandBuffer,
    const VkAccelerationStructureInfoNV*        pInfo,
    VkBuffer                                    instanceData,
    VkDeviceSize                                instanceOffset,
    VkBool32                                    update,
    VkAccelerationStructureKHR                  dst,
    VkAccelerationStructureKHR                  src,
    VkBuffer                                    scratch,
    VkDeviceSize                                scratchOffset);Parameters
- 
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 beNULLfor bottom level acceleration structures.
- 
instanceOffsetis the offset in bytes (relative to the start ofinstanceData) at which the instance data is located.
- 
updatespecifies whether to update thedstacceleration structure with the data insrc.
- 
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 thedstacceleration structure.
- 
scratchis the VkBuffer that will be used as scratch memory for the build.
- 
scratchOffsetis the offset in bytes relative to the start ofscratchthat will be used as a scratch memory.
See Also
VkAccelerationStructureInfoNV, VkAccelerationStructureKHR, VkBool32, VkBuffer, VkCommandBuffer, VkDeviceSize
Document Notes
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
Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.