# VkCopyAccelerationStructureToMemoryInfoKHR(3) Manual Page

## Name

VkCopyAccelerationStructureToMemoryInfoKHR - Parameters for serializing an acceleration structure

## C Specification

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

## Members

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

- `dst` is the device or host address to memory which is the target for the copy

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

## Description

Valid Usage

- The memory pointed to by `dst` must be at least as large as the serialization size of `src`, as reported by `VK_QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR`.

- [[VUID-{refpage}-mode-03412]] `mode` must be `VK_COPY_ACCELERATION_STRUCTURE_MODE_SERIALIZE_KHR`

Valid Usage (Implicit)

- `sType` must be `VK_STRUCTURE_TYPE_COPY_ACCELERATION_STRUCTURE_TO_MEMORY_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 VkDeviceOrHostAddressKHR union

- `mode` must be a valid VkCopyAccelerationStructureModeKHR value

## See Also

VkAccelerationStructureKHR, VkCopyAccelerationStructureModeKHR, VkDeviceOrHostAddressKHR, VkStructureType, vkCmdCopyAccelerationStructureToMemoryKHR, vkCopyAccelerationStructureToMemoryKHR

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