C Specification
To copy an acceleration structure call:
// Provided by VK_KHR_acceleration_structure
void vkCmdCopyAccelerationStructureKHR(
VkCommandBuffer commandBuffer,
const VkCopyAccelerationStructureInfoKHR* pInfo);
Parameters
-
commandBuffer
is the command buffer into which the command will be recorded. -
pInfo
is a pointer to a VkCopyAccelerationStructureInfoKHR structure defining the copy operation.
Description
This command copies the pInfo->src
acceleration structure to the
pInfo->dst
acceleration structure in the manner specified by
pInfo->mode
.
Accesses to pInfo->src
and pInfo->dst
must be
synchronized with the
VK_PIPELINE_STAGE_2_ACCELERATION_STRUCTURE_COPY_BIT_KHR
pipeline stage or the
VK_PIPELINE_STAGE_ACCELERATION_STRUCTURE_BUILD_BIT_KHR
pipeline stage, and an
access type of
VK_ACCESS_ACCELERATION_STRUCTURE_READ_BIT_KHR
or
VK_ACCESS_ACCELERATION_STRUCTURE_WRITE_BIT_KHR
as appropriate.
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.