Enum vulkano::command_buffer::CommandBufferUsage [−][src]
#[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
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.