Struct vulkano::device::QueueFlags
source · [−]pub struct QueueFlags {
pub graphics: bool,
pub compute: bool,
pub transfer: bool,
pub sparse_binding: bool,
pub protected: bool,
pub video_decode: bool,
pub video_encode: bool,
pub _ne: NonExhaustive,
}
Expand description
Attributes of a queue or queue family.
Fields
graphics: bool
Queues of this family can execute graphics operations.
compute: bool
Queues of this family can execute compute operations.
transfer: bool
Queues of this family can execute transfer operations.
sparse_binding: bool
Queues of this family can execute sparse memory management operations.
protected: bool
Queues of this family can be created using the protected
flag.
video_decode: bool
Queues of this family can execute video decode operations.
video_encode: bool
Queues of this family can execute video encode operations.
_ne: NonExhaustive
Implementations
sourceimpl QueueFlags
impl QueueFlags
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns 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 set in self
or other
, but not both.
Trait Implementations
sourceimpl BitAnd<QueueFlags> for QueueFlags
impl BitAnd<QueueFlags> for QueueFlags
type Output = QueueFlags
type Output = QueueFlags
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<QueueFlags> for QueueFlags
impl BitAndAssign<QueueFlags> for QueueFlags
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<QueueFlags> for QueueFlags
impl BitOr<QueueFlags> for QueueFlags
type Output = QueueFlags
type Output = QueueFlags
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<QueueFlags> for QueueFlags
impl BitOrAssign<QueueFlags> for QueueFlags
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<QueueFlags> for QueueFlags
impl BitXor<QueueFlags> for QueueFlags
type Output = QueueFlags
type Output = QueueFlags
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<QueueFlags> for QueueFlags
impl BitXorAssign<QueueFlags> for QueueFlags
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl Clone for QueueFlags
impl Clone for QueueFlags
sourcefn clone(&self) -> QueueFlags
fn clone(&self) -> QueueFlags
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 QueueFlags
impl Debug for QueueFlags
sourceimpl Default for QueueFlags
impl Default for QueueFlags
sourceimpl From<QueueFlags> for QueueFlags
impl From<QueueFlags> for QueueFlags
sourcefn from(val: QueueFlags) -> Self
fn from(val: QueueFlags) -> Self
Converts to this type from the input type.
sourceimpl From<QueueFlags> for QueueFlags
impl From<QueueFlags> for QueueFlags
sourcefn from(val: QueueFlags) -> Self
fn from(val: QueueFlags) -> Self
Converts to this type from the input type.
sourceimpl Hash for QueueFlags
impl Hash for QueueFlags
sourceimpl PartialEq<QueueFlags> for QueueFlags
impl PartialEq<QueueFlags> for QueueFlags
sourcefn eq(&self, other: &QueueFlags) -> bool
fn eq(&self, other: &QueueFlags) -> bool
sourceimpl Sub<QueueFlags> for QueueFlags
impl Sub<QueueFlags> for QueueFlags
type Output = QueueFlags
type Output = QueueFlags
The resulting type after applying the
-
operator.sourceimpl SubAssign<QueueFlags> for QueueFlags
impl SubAssign<QueueFlags> for QueueFlags
sourcefn 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
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