VkBufferUsageFlags2CreateInfoKHR(3)

# VkBufferUsageFlags2CreateInfoKHR(3) Manual Page

## Name

VkBufferUsageFlags2CreateInfoKHR - Extended buffer usage flags

Loading… please wait.

## C Specification

The `VkBufferUsageFlags2CreateInfoKHR` structure is defined as:

    // Provided by VK_KHR_maintenance5
    typedef struct VkBufferUsageFlags2CreateInfoKHR {
        VkStructureType           sType;
        const void*               pNext;
        VkBufferUsageFlags2KHR    usage;
    } VkBufferUsageFlags2CreateInfoKHR;

## Members

- `sType` is a VkStructureType value identifying this structure.

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

- `usage` is a bitmask of VkBufferUsageFlagBits2KHR specifying allowed usages of the buffer.

## Description

If this structure is included in the `pNext` chain of a buffer creation structure, `usage` is used instead of the corresponding `usage` value passed in that creation structure, allowing additional usage flags to be specified. If this structure is included in the `pNext` chain of a buffer query structure, the usage flags of the buffer are returned in `usage` of this structure, and the usage flags representable in `usage` of the buffer query structure are also returned in that field.

Valid Usage (Implicit)

- VUID-VkBufferUsageFlags2CreateInfoKHR-sType-sType
  `sType` must be `VK_STRUCTURE_TYPE_BUFFER_USAGE_FLAGS_2_CREATE_INFO_KHR`

- VUID-VkBufferUsageFlags2CreateInfoKHR-usage-parameter
  `usage` must be a valid combination of VkBufferUsageFlagBits2KHR values

- VUID-VkBufferUsageFlags2CreateInfoKHR-usage-requiredbitmask
  `usage` must not be `0`

## See Also

VK_KHR_maintenance5, VkBufferUsageFlags2KHR, 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 2014-2023 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0