VKBUFFERUSAGEFLAGS(3)

NAME
VkBufferUsageFlags - Buffer object usage flags.

C SPECIFICATION

    typedef VkFlags VkBufferUsageFlags;

CONSTANTS

VK_BUFFER_USAGE_TRANSFER_SRC_BIT
    The buffer can be used as the source operand of transfer operations (vkCmdCopyBuffer, vkCmdCopyBufferToImage).

VK_BUFFER_USAGE_TRANSFER_DST_BIT
    The buffer can be used as the destination operand of transfer operations (vkCmdCopyBuffer, vkCmdCopyImageToBuffer, vkCmdUpdateBuffer, vkCmdFillBuffer, vkCmdWriteTimestamp, vkCmdCopyQueryPoolResults).

VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT
    The buffer supports reads via uniform texel buffer descriptors.

VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT
    The buffer supports loads, stores, and atomic operations via storage texel buffer descriptors.

VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT
    The buffer supports reads via uniform buffer descriptors.

VK_BUFFER_USAGE_STORAGE_BUFFER_BIT
    The buffer supports loads, stores, and atomic operations via storage buffer descriptors.

VK_BUFFER_USAGE_INDEX_BUFFER_BIT
    The buffer can be bound as an index buffer using the vkCmdBindIndexBuffer command.

VK_BUFFER_USAGE_VERTEX_BUFFER_BIT
    The buffer can be bound as a vertex buffer using the vkCmdBindVertexBuffers command.

VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
    The buffer can be used as the source of indirect commands (vkCmdDrawIndirect, vkCmdDrawIndexedIndirect, vkCmdDispatchIndirect).

DESCRIPTION

These flags are used in the VkBufferCreateInfo structure passed as parameter to vkCreateBuffer to define the intended use of the created buffer. Trying to use the buffer for any other purpose than those requested at creation time may result in undefined behavior.

SEE ALSO

VkBufferCreateInfo, vkCreateBuffer

COPYRIGHT

Copyright © 2014-2016 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

AUTHOR

Khronos Group
    Author.