# VkCopyMemoryToAccelerationStructureInfoKHR(3) Manual Page

## Name

VkCopyMemoryToAccelerationStructureInfoKHR - Parameters for deserializing an acceleration structure

## C Specification

The `VkCopyMemoryToAccelerationStructureInfoKHR` structure is defined as:

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

## Members

- `src` is the device or host address to memory containing the source data 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-03413]] `mode` must be `VK_COPY_ACCELERATION_STRUCTURE_MODE_DESERIALIZE_KHR`

- [[VUID-{refpage}-pInfo-03414]] The data in `pInfo->pname`:src must have a format compatible with the destination physical device as returned by vkGetDeviceAccelerationStructureCompatibilityKHR

Valid Usage (Implicit)

- `sType` must be `VK_STRUCTURE_TYPE_COPY_MEMORY_TO_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 VkDeviceOrHostAddressConstKHR union

- `dst` must be a valid VkAccelerationStructureKHR handle

- `mode` must be a valid VkCopyAccelerationStructureModeKHR value

## See Also

VkAccelerationStructureKHR, VkCopyAccelerationStructureModeKHR, VkDeviceOrHostAddressConstKHR, VkStructureType, vkCmdCopyMemoryToAccelerationStructureKHR, vkCopyMemoryToAccelerationStructureKHR

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