VkCopyMemoryToAccelerationStructureInfoKHR(3)

# VkCopyMemoryToAccelerationStructureInfoKHR(3) Manual Page

## Name

VkCopyMemoryToAccelerationStructureInfoKHR - Parameters for deserializing an acceleration structure

Loading… please wait.

## C Specification

The `VkCopyMemoryToAccelerationStructureInfoKHR` structure is defined as:

    // Provided by VK_KHR_ray_tracing
    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

- `mode` must be `VK_COPY_ACCELERATION_STRUCTURE_MODE_DESERIALIZE_KHR`

- The data in `pInfo->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 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0