Struct vulkano::device::QueueFlags
source · pub struct QueueFlags(/* private fields */);
Expand description
Attributes of a queue or queue family.
Implementations§
source§impl QueueFlags
impl QueueFlags
sourcepub const SPARSE_BINDING: Self = _
pub const SPARSE_BINDING: Self = _
Queues of this family can execute sparse memory management operations.
sourcepub const VIDEO_DECODE: Self = _
pub const VIDEO_DECODE: Self = _
Queues of this family can execute video decode operations.
sourcepub const VIDEO_ENCODE: Self = _
pub const VIDEO_ENCODE: Self = _
Queues of this family can execute video encode operations.
sourcepub const OPTICAL_FLOW: Self = _
pub const OPTICAL_FLOW: Self = _
Queues of this family can execute optical flow operations.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a QueueFlags
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 QueueFlags
impl BitAnd for QueueFlags
source§impl BitAndAssign for QueueFlags
impl BitAndAssign for QueueFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for QueueFlags
impl BitOr for QueueFlags
source§impl BitOrAssign for QueueFlags
impl BitOrAssign for QueueFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for QueueFlags
impl BitXor for QueueFlags
source§impl BitXorAssign for QueueFlags
impl BitXorAssign for QueueFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for QueueFlags
impl Clone for QueueFlags
source§fn clone(&self) -> QueueFlags
fn clone(&self) -> QueueFlags
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 QueueFlags
impl Debug for QueueFlags
source§impl Default for QueueFlags
impl Default for QueueFlags
source§impl From<QueueFlags> for PipelineStages
impl From<QueueFlags> for PipelineStages
source§fn from(val: QueueFlags) -> Self
fn from(val: QueueFlags) -> Self
Corresponds to the table “Supported pipeline stage flags” in the Vulkan specification.
source§impl From<QueueFlags> for QueueFlags
impl From<QueueFlags> for QueueFlags
source§fn from(val: QueueFlags) -> Self
fn from(val: QueueFlags) -> Self
Converts to this type from the input type.
source§impl From<QueueFlags> for QueueFlags
impl From<QueueFlags> for QueueFlags
source§fn from(val: QueueFlags) -> Self
fn from(val: QueueFlags) -> Self
Converts to this type from the input type.
source§impl Hash for QueueFlags
impl Hash for QueueFlags
source§impl PartialEq for QueueFlags
impl PartialEq for QueueFlags
source§fn eq(&self, other: &QueueFlags) -> bool
fn eq(&self, other: &QueueFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for QueueFlags
impl Sub for QueueFlags
source§impl SubAssign for QueueFlags
impl SubAssign for QueueFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for QueueFlags
impl Eq for QueueFlags
impl StructuralEq for QueueFlags
impl StructuralPartialEq for QueueFlags
Auto Trait Implementations§
impl RefUnwindSafe for QueueFlags
impl Send for QueueFlags
impl Sync for QueueFlags
impl Unpin for QueueFlags
impl UnwindSafe for QueueFlags
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