Structures

VkCopyAccelerationStructureInfoKHR

Parameters for copying an acceleration structure

The VkCopyAccelerationStructureInfoKHR structure is defined as:

typedef struct VkCopyAccelerationStructureInfoKHR {
    VkStructureType sType;
    const void* pNext;
    VkAccelerationStructureKHR src;
    VkAccelerationStructureKHR dst;
    VkCopyAccelerationStructureModeKHR mode;
} VkCopyAccelerationStructureInfoKHR;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • src is the source acceleration structure for the copy.
  • dst is the target acceleration structure for the copy.
  • mode is a VkCopyAccelerationStructureModeKHR value specifying additional operations to perform during the copy.

Valid Usage

VUID-VkCopyAccelerationStructureInfoKHR-mode-03410

mode must be VK_COPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHR or VK_COPY_ACCELERATION_STRUCTURE_MODE_CLONE_KHR

VUID-VkCopyAccelerationStructureInfoKHR-src-04963

The source acceleration structure src must have been constructed prior to the execution of this command

VUID-VkCopyAccelerationStructureInfoKHR-src-03411

If mode is VK_COPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHR, src must have been constructed with VK_BUILD_ACCELERATION_STRUCTURE_ALLOW_COMPACTION_BIT_KHR in the build

VUID-VkCopyAccelerationStructureInfoKHR-buffer-03718

The buffer used to create src must be bound to device memory

VUID-VkCopyAccelerationStructureInfoKHR-buffer-03719

The buffer used to create dst must be bound to device memory

VUID-VkCopyAccelerationStructureInfoKHR-dst-07791

The range of memory backing dst that is accessed by this command must not overlap the memory backing src that is accessed by this command

Valid Usage (Implicit)