Enum
VkCommandBufferUsageFlagBits
Bitmask specifying usage behavior for command buffer
Bits which can be set in VkCommandBufferBeginInfo::flags,
specifying usage behavior for a command buffer, are:
typedef enum VkCommandBufferUsageFlagBits {
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = 0x00000001,
VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = 0x00000002,
VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = 0x00000004,
// Provided by extensions
VK_COMMAND_BUFFER_USAGE_RESERVED_3_BIT_HUAWEI = 0x00000008,
VK_COMMAND_BUFFER_USAGE_RESERVED_4_BIT_HUAWEI = 0x00000010,
} VkCommandBufferUsageFlagBits;
pub struct CommandBufferUsageFlagBits(u32);
impl CommandBufferUsageFlagBits {
pub const ONE_TIME_SUBMIT: Self = 0x00000001;
pub const RENDER_PASS_CONTINUE: Self = 0x00000002;
pub const SIMULTANEOUS_USE: Self = 0x00000004;
pub const RESERVED_3_HUAWEI: Self = 0x00000008;
pub const RESERVED_4_HUAWEI: Self = 0x00000010;
}
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BITspecifies that each recording of the command buffer will only be submitted once, and the command buffer will be reset and recorded again between each submission.VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BITspecifies that a secondary command buffer is considered to be entirely inside a render pass. If this is a primary command buffer, then this bit is ignored.VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BITspecifies that a command buffer can be resubmitted to any queue of the same queue family while it is in the pending state, and recorded into multiple primary command buffers.
Parent
VK_VERSION_1_0Type
Enum