# VkCopyAccelerationStructureInfoKHR(3) Manual Page

## Name

VkCopyAccelerationStructureInfoKHR - Parameters for copying an acceleration structure

## C Specification

The `VkCopyAccelerationStructureInfoKHR` structure is defined as:

    typedef struct VkCopyAccelerationStructureInfoKHR {
        VkStructureType                       sType;
        const void*                           pNext;
        VkAccelerationStructureKHR            src;
        VkAccelerationStructureKHR            dst;
        VkCopyAccelerationStructureModeKHR    mode;
    } VkCopyAccelerationStructureInfoKHR;

## Members

- `src` is the source acceleration structure for the copy.

- `dst` is the target acceleration structure for the copy.

- `mode` is a VkCopyAccelerationStructureModeKHR value that specifies additional operations to perform during the copy.

## Description

Valid Usage

- [[VUID-{refpage}-mode-03410]] `mode` must be `VK_COPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHR` or `VK_COPY_ACCELERATION_STRUCTURE_MODE_CLONE_KHR`

- [[VUID-{refpage}-src-03411]] `src` must have been built with `VK_BUILD_ACCELERATION_STRUCTURE_ALLOW_COMPACTION_BIT_KHR` if `mode` is `VK_COPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHR`

Valid Usage (Implicit)

- `sType` must be `VK_STRUCTURE_TYPE_COPY_ACCELERATION_STRUCTURE_INFO_KHR`

- `pNext` must be `NULL` or a pointer to a valid instance of VkDeferredOperationInfoKHR

- The `sType` value of each struct in the `pNext` chain must be unique

- `src` must be a valid VkAccelerationStructureKHR handle

- `dst` must be a valid VkAccelerationStructureKHR handle

- `mode` must be a valid VkCopyAccelerationStructureModeKHR value

- Both of `dst`, and `src` must have been created, allocated, or retrieved from the same VkDevice

## See Also

VkAccelerationStructureKHR, VkCopyAccelerationStructureModeKHR, VkStructureType, vkCmdCopyAccelerationStructureKHR, vkCopyAccelerationStructureKHR

## 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.