Struct vulkano::command_buffer::pool::CommandPoolCreateFlags
source · pub struct CommandPoolCreateFlags(/* private fields */);
Expand description
Additional properties of the command pool.
Implementations§
source§impl CommandPoolCreateFlags
impl CommandPoolCreateFlags
sourcepub const TRANSIENT: Self = _
pub const TRANSIENT: Self = _
A hint to the implementation that the command buffers allocated from this pool will be short-lived.
sourcepub const RESET_COMMAND_BUFFER: Self = _
pub const RESET_COMMAND_BUFFER: Self = _
Command buffers allocated from this pool can be reset individually.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a CommandPoolCreateFlags
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
Trait Implementations§
source§impl BitAnd for CommandPoolCreateFlags
impl BitAnd for CommandPoolCreateFlags
source§impl BitAndAssign for CommandPoolCreateFlags
impl BitAndAssign for CommandPoolCreateFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for CommandPoolCreateFlags
impl BitOr for CommandPoolCreateFlags
source§impl BitOrAssign for CommandPoolCreateFlags
impl BitOrAssign for CommandPoolCreateFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for CommandPoolCreateFlags
impl BitXor for CommandPoolCreateFlags
source§impl BitXorAssign for CommandPoolCreateFlags
impl BitXorAssign for CommandPoolCreateFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for CommandPoolCreateFlags
impl Clone for CommandPoolCreateFlags
source§fn clone(&self) -> CommandPoolCreateFlags
fn clone(&self) -> CommandPoolCreateFlags
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 CommandPoolCreateFlags
impl Debug for CommandPoolCreateFlags
source§impl Default for CommandPoolCreateFlags
impl Default for CommandPoolCreateFlags
source§impl From<CommandPoolCreateFlags> for CommandPoolCreateFlags
impl From<CommandPoolCreateFlags> for CommandPoolCreateFlags
source§fn from(val: CommandPoolCreateFlags) -> Self
fn from(val: CommandPoolCreateFlags) -> Self
Converts to this type from the input type.
source§impl From<CommandPoolCreateFlags> for CommandPoolCreateFlags
impl From<CommandPoolCreateFlags> for CommandPoolCreateFlags
source§fn from(val: CommandPoolCreateFlags) -> Self
fn from(val: CommandPoolCreateFlags) -> Self
Converts to this type from the input type.
source§impl Hash for CommandPoolCreateFlags
impl Hash for CommandPoolCreateFlags
source§impl PartialEq for CommandPoolCreateFlags
impl PartialEq for CommandPoolCreateFlags
source§fn eq(&self, other: &CommandPoolCreateFlags) -> bool
fn eq(&self, other: &CommandPoolCreateFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for CommandPoolCreateFlags
impl Sub for CommandPoolCreateFlags
source§impl SubAssign for CommandPoolCreateFlags
impl SubAssign for CommandPoolCreateFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for CommandPoolCreateFlags
impl Eq for CommandPoolCreateFlags
impl StructuralEq for CommandPoolCreateFlags
impl StructuralPartialEq for CommandPoolCreateFlags
Auto Trait Implementations§
impl RefUnwindSafe for CommandPoolCreateFlags
impl Send for CommandPoolCreateFlags
impl Sync for CommandPoolCreateFlags
impl Unpin for CommandPoolCreateFlags
impl UnwindSafe for CommandPoolCreateFlags
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more