#[repr(i32)]
pub enum CommandBufferLevel {
Primary,
Secondary,
}
Expand description
Determines the kind of command buffer to create.
Variants§
Primary
Primary command buffers can be executed on a queue, and can call secondary command buffers. Render passes must begin and end within the same primary command buffer.
Secondary
Secondary command buffers cannot be executed on a queue, but can be executed by a primary command buffer. If created for a render pass, they must fit within a single render subpass.
Trait Implementations§
source§impl Clone for CommandBufferLevel
impl Clone for CommandBufferLevel
source§fn clone(&self) -> CommandBufferLevel
fn clone(&self) -> CommandBufferLevel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CommandBufferLevel
impl Debug for CommandBufferLevel
source§impl From<CommandBufferLevel> for CommandBufferLevel
impl From<CommandBufferLevel> for CommandBufferLevel
source§fn from(val: CommandBufferLevel) -> Self
fn from(val: CommandBufferLevel) -> Self
Converts to this type from the input type.
source§impl Hash for CommandBufferLevel
impl Hash for CommandBufferLevel
source§impl PartialEq<CommandBufferLevel> for CommandBufferLevel
impl PartialEq<CommandBufferLevel> for CommandBufferLevel
source§fn eq(&self, other: &CommandBufferLevel) -> bool
fn eq(&self, other: &CommandBufferLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.