Enum vulkano::command_buffer::CommandBufferUsage
source · [−]#[repr(u32)]
pub enum CommandBufferUsage {
OneTimeSubmit,
MultipleSubmit,
SimultaneousUse,
}
Expand description
Usage flags to pass when creating a command buffer.
The safest option is SimultaneousUse
, but it may be slower than the other two.
Variants
OneTimeSubmit
The command buffer can only be submitted once before being destroyed. Any further submit is forbidden. This makes it possible for the implementation to perform additional optimizations.
MultipleSubmit
The command buffer can be used multiple times, but must not execute or record more than once simultaneously. In other words, it is as if executing the command buffer borrows it mutably.
SimultaneousUse
The command buffer can be executed multiple times in parallel on different queues. If it’s a secondary command buffer, it can be recorded to multiple primary command buffers at once.
Trait Implementations
sourceimpl Clone for CommandBufferUsage
impl Clone for CommandBufferUsage
sourcefn clone(&self) -> CommandBufferUsage
fn clone(&self) -> CommandBufferUsage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CommandBufferUsage
impl Debug for CommandBufferUsage
sourceimpl From<CommandBufferUsage> for CommandBufferUsageFlags
impl From<CommandBufferUsage> for CommandBufferUsageFlags
sourcefn from(val: CommandBufferUsage) -> Self
fn from(val: CommandBufferUsage) -> Self
Performs the conversion.
sourceimpl Ord for CommandBufferUsage
impl Ord for CommandBufferUsage
sourceimpl PartialOrd<CommandBufferUsage> for CommandBufferUsage
impl PartialOrd<CommandBufferUsage> for CommandBufferUsage
sourcefn partial_cmp(&self, other: &CommandBufferUsage) -> Option<Ordering>
fn partial_cmp(&self, other: &CommandBufferUsage) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for CommandBufferUsage
impl Eq for CommandBufferUsage
impl StructuralEq for CommandBufferUsage
impl StructuralPartialEq for CommandBufferUsage
Auto Trait Implementations
impl RefUnwindSafe for CommandBufferUsage
impl Send for CommandBufferUsage
impl Sync for CommandBufferUsage
impl Unpin for CommandBufferUsage
impl UnwindSafe for CommandBufferUsage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more