VkBufferCopy2KHR(3)

# VkBufferCopy2KHR(3) Manual Page

## Name

VkBufferCopy2KHR - Structure specifying a buffer copy operation

Loading… please wait.

## C Specification

The `VkBufferCopy2KHR` structure is defined as:

    // Provided by VK_KHR_copy_commands2
    typedef struct VkBufferCopy2KHR {
        VkStructureType    sType;
        const void*        pNext;
        VkDeviceSize       srcOffset;
        VkDeviceSize       dstOffset;
        VkDeviceSize       size;
    } VkBufferCopy2KHR;

## Members

- `sType` is the type of this structure.

- `pNext` is `NULL` or a pointer to a structure extending this structure.

- `srcOffset` is the starting offset in bytes from the start of `srcBuffer`.

- `dstOffset` is the starting offset in bytes from the start of `dstBuffer`.

- `size` is the number of bytes to copy.

## Description

Valid Usage

- VUID-VkBufferCopy2KHR-size-01988
  The `size` must be greater than `0`

Valid Usage (Implicit)

- VUID-VkBufferCopy2KHR-sType-sType
  `sType` must be `VK_STRUCTURE_TYPE_BUFFER_COPY_2_KHR`

- VUID-VkBufferCopy2KHR-pNext-pNext
  `pNext` must be `NULL`

## See Also

VkCopyBufferInfo2KHR, `VkDeviceSize`, VkStructureType

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