Enum
VkBufferUsageFlagBits2
Bitmask controlling how a pipeline is created
Bits which can be set in VkBufferUsageFlags2CreateInfo::usage,
specifying usage behavior of a buffer, are:
typedef enum VkBufferUsageFlagBits2 {
VK_BUFFER_USAGE_2_TRANSFER_SRC_BIT = 0x00000001ULL,
VK_BUFFER_USAGE_2_TRANSFER_DST_BIT = 0x00000002ULL,
VK_BUFFER_USAGE_2_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004ULL,
VK_BUFFER_USAGE_2_STORAGE_TEXEL_BUFFER_BIT = 0x00000008ULL,
VK_BUFFER_USAGE_2_UNIFORM_BUFFER_BIT = 0x00000010ULL,
VK_BUFFER_USAGE_2_STORAGE_BUFFER_BIT = 0x00000020ULL,
VK_BUFFER_USAGE_2_INDEX_BUFFER_BIT = 0x00000040ULL,
VK_BUFFER_USAGE_2_VERTEX_BUFFER_BIT = 0x00000080ULL,
VK_BUFFER_USAGE_2_INDIRECT_BUFFER_BIT = 0x00000100ULL,
} VkBufferUsageFlagBits2;
pub struct BufferUsageFlagBits2(u64);
impl BufferUsageFlagBits2 {
pub const TRANSFER_SRC: Self = 0x00000001;
pub const TRANSFER_DST: Self = 0x00000002;
pub const UNIFORM_TEXEL_BUFFER: Self = 0x00000004;
pub const STORAGE_TEXEL_BUFFER: Self = 0x00000008;
pub const UNIFORM_BUFFER: Self = 0x00000010;
pub const STORAGE_BUFFER: Self = 0x00000020;
pub const INDEX_BUFFER: Self = 0x00000040;
pub const VERTEX_BUFFER: Self = 0x00000080;
pub const INDIRECT_BUFFER: Self = 0x00000100;
}
#define VkBufferUsageFlagBits2KHR VkBufferUsageFlagBits2
const BufferUsageFlagBits2KHR: _ = vk::BufferUsageFlagBits2;
VK_BUFFER_USAGE_2_TRANSFER_SRC_BITspecifies that the buffer can be used as the source of a transfer command (see the definition ofVK_PIPELINE_STAGE_TRANSFER_BIT).VK_BUFFER_USAGE_2_TRANSFER_DST_BITspecifies that the buffer can be used as the destination of a transfer command.VK_BUFFER_USAGE_2_UNIFORM_TEXEL_BUFFER_BITspecifies that the buffer can be used to create aVkBufferViewsuitable for occupying aVkDescriptorSetslot of typeVK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER.VK_BUFFER_USAGE_2_STORAGE_TEXEL_BUFFER_BITspecifies that the buffer can be used to create aVkBufferViewsuitable for occupying aVkDescriptorSetslot of typeVK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER.VK_BUFFER_USAGE_2_UNIFORM_BUFFER_BITspecifies that the buffer can be used in aVkDescriptorBufferInfosuitable for occupying aVkDescriptorSetslot either of typeVK_DESCRIPTOR_TYPE_UNIFORM_BUFFERorVK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC.VK_BUFFER_USAGE_2_STORAGE_BUFFER_BITspecifies that the buffer can be used in aVkDescriptorBufferInfosuitable for occupying aVkDescriptorSetslot either of typeVK_DESCRIPTOR_TYPE_STORAGE_BUFFERorVK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC.VK_BUFFER_USAGE_2_INDEX_BUFFER_BITspecifies that the buffer is suitable for passing as thebufferparameter to vkCmdBindIndexBuffer2 and vkCmdBindIndexBuffer.VK_BUFFER_USAGE_2_VERTEX_BUFFER_BITspecifies that the buffer is suitable for passing as an element of thepBuffersarray to vkCmdBindVertexBuffers.VK_BUFFER_USAGE_2_INDIRECT_BUFFER_BITspecifies that the buffer is suitable for passing as thebufferparameter to vkCmdDrawIndirect, vkCmdDrawIndexedIndirect, vkCmdDrawMeshTasksIndirectNV, vkCmdDrawMeshTasksIndirectCountNV,vkCmdDrawMeshTasksIndirectEXT,vkCmdDrawMeshTasksIndirectCountEXT, vkCmdDrawClusterIndirectHUAWEI, or vkCmdDispatchIndirect. It is also suitable for passing as thebuffermember ofVkIndirectCommandsStreamNV, orsequencesCountBufferorsequencesIndexBufferorpreprocessedBuffermember ofVkGeneratedCommandsInfoNV. It is also suitable for passing as the underlying buffer of either thepreprocessAddressorsequenceCountAddressmembers ofVkGeneratedCommandsInfoEXT.VK_BUFFER_USAGE_2_CONDITIONAL_RENDERING_BIT_EXTspecifies that the buffer is suitable for passing as thebufferparameter to vkCmdBeginConditionalRenderingEXT.VK_BUFFER_USAGE_2_TRANSFORM_FEEDBACK_BUFFER_BIT_EXTspecifies that the buffer is suitable for using for binding as a transform feedback buffer with vkCmdBindTransformFeedbackBuffers2EXT or vkCmdBindTransformFeedbackBuffersEXT.VK_BUFFER_USAGE_2_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXTspecifies that the buffer is suitable for using as a counter buffer with vkCmdBeginTransformFeedback2EXT, vkCmdEndTransformFeedback2EXT, vkCmdBeginTransformFeedbackEXT, and vkCmdEndTransformFeedbackEXT.VK_BUFFER_USAGE_2_SAMPLER_DESCRIPTOR_BUFFER_BIT_EXTspecifies that the buffer is suitable to contain sampler and combined image sampler descriptors when bound as a descriptor buffer. Buffers containing combined image sampler descriptors must also specifyVK_BUFFER_USAGE_2_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT.VK_BUFFER_USAGE_2_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXTspecifies that the buffer is suitable to contain resource descriptors when bound as a descriptor buffer.VK_BUFFER_USAGE_2_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXTspecifies that the buffer, when bound, can be used by the implementation to support push descriptors when using descriptor buffers.VK_BUFFER_USAGE_2_TILE_MEMORY_BIT_QCOMspecifies that the buffer can be bound toVkDeviceMemoryallocated from a VkMemoryHeap with theVK_MEMORY_HEAP_TILE_MEMORY_BIT_QCOMproperty.VK_BUFFER_USAGE_2_RAY_TRACING_BIT_NVspecifies that the buffer is suitable for use in vkCmdTraceRaysNV.VK_BUFFER_USAGE_2_SHADER_BINDING_TABLE_BIT_KHRspecifies that the buffer is suitable for use as a Shader Binding Table.VK_BUFFER_USAGE_2_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHRspecifies that the buffer is suitable for use as a read-only input to an acceleration structure build.VK_BUFFER_USAGE_2_ACCELERATION_STRUCTURE_STORAGE_BIT_KHRspecifies that the buffer is suitable for storage space for a VkAccelerationStructureKHR.VK_BUFFER_USAGE_2_SHADER_DEVICE_ADDRESS_BITspecifies that the buffer can be used to retrieve a buffer device address via vkGetBufferDeviceAddress and use that address to access the buffer’s memory from a shader.VK_BUFFER_USAGE_2_VIDEO_DECODE_SRC_BIT_KHRspecifies that the buffer can be used as the source video bitstream buffer in a video decode operation.VK_BUFFER_USAGE_2_VIDEO_DECODE_DST_BIT_KHRis reserved for future use.VK_BUFFER_USAGE_2_VIDEO_ENCODE_DST_BIT_KHRspecifies that the buffer can be used as the destination video bitstream buffer in a video encode operation.VK_BUFFER_USAGE_2_VIDEO_ENCODE_SRC_BIT_KHRis reserved for future use.VK_BUFFER_USAGE_2_EXECUTION_GRAPH_SCRATCH_BIT_AMDXspecifies that the buffer can be used for as scratch memory for execution graph dispatch.VK_BUFFER_USAGE_2_PREPROCESS_BUFFER_BIT_EXTspecifies that the buffer can be used as a preprocess buffer for Device-Generated Commands.VK_BUFFER_USAGE_2_COMPRESSED_DATA_DGF1_BIT_AMDXspecifies that the buffer is suitable as storage space for Dense Geometry Format data.VK_BUFFER_USAGE_2_DATA_GRAPH_FOREIGN_DESCRIPTOR_BIT_ARMspecifies that the buffer is suitable to contain resource descriptors when bound as a descriptor buffer in command buffers allocated from a command pool that can target foreign data graph processing engines.VK_BUFFER_USAGE_2_MEMORY_DECOMPRESSION_BIT_EXTspecifies that the buffer can be used as a destination buffer in memory decompression.VK_BUFFER_USAGE_2_DESCRIPTOR_HEAP_BIT_EXTspecifies that the buffer can be used as a descriptor heap.
Parent
VK_VERSION_1_4Type
Enum