Enum vulkano::command_buffer::CommandBufferUsage [−][src]
pub enum CommandBufferUsage { OneTimeSubmit, MultipleSubmit, SimultaneousUse, }
Usage flags to pass when creating a command buffer.
The safest option is SimultaneousUse
, but it may be slower than the other two.
Variants
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.
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.
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
impl Clone for CommandBufferUsage
[src]
impl Clone for CommandBufferUsage
[src]fn clone(&self) -> CommandBufferUsage
[src]
fn clone(&self) -> CommandBufferUsage
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for CommandBufferUsage
[src]
impl Debug for CommandBufferUsage
[src]impl Ord for CommandBufferUsage
[src]
impl Ord for CommandBufferUsage
[src]impl PartialOrd<CommandBufferUsage> for CommandBufferUsage
[src]
impl PartialOrd<CommandBufferUsage> for CommandBufferUsage
[src]fn partial_cmp(&self, other: &CommandBufferUsage) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &CommandBufferUsage) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for CommandBufferUsage
[src]
impl Eq for CommandBufferUsage
[src]
impl StructuralEq for CommandBufferUsage
[src]
impl StructuralPartialEq for CommandBufferUsage
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more