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 moresourceimpl 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
Converts to this type from the input type.
sourceimpl Ord for CommandBufferUsage
impl Ord for CommandBufferUsage
sourcefn cmp(&self, other: &CommandBufferUsage) -> Ordering
fn cmp(&self, other: &CommandBufferUsage) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<CommandBufferUsage> for CommandBufferUsage
impl PartialEq<CommandBufferUsage> for CommandBufferUsage
sourcefn eq(&self, other: &CommandBufferUsage) -> bool
fn eq(&self, other: &CommandBufferUsage) -> bool
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>
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 moreimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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