Struct vulkano::device::physical::SubgroupFeatures
source · pub struct SubgroupFeatures(/* private fields */);
Expand description
Specifies which subgroup operations are supported.
Implementations§
source§impl SubgroupFeatures
impl SubgroupFeatures
pub const BASIC: Self = _
pub const VOTE: Self = _
pub const ARITHMETIC: Self = _
pub const BALLOT: Self = _
pub const SHUFFLE: Self = _
pub const SHUFFLE_RELATIVE: Self = _
pub const CLUSTERED: Self = _
pub const QUAD: Self = _
pub const PARTITIONED: Self = _
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a SubgroupFeatures
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 SubgroupFeatures
impl BitAnd for SubgroupFeatures
source§impl BitAndAssign for SubgroupFeatures
impl BitAndAssign for SubgroupFeatures
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for SubgroupFeatures
impl BitOr for SubgroupFeatures
source§impl BitOrAssign for SubgroupFeatures
impl BitOrAssign for SubgroupFeatures
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for SubgroupFeatures
impl BitXor for SubgroupFeatures
source§impl BitXorAssign for SubgroupFeatures
impl BitXorAssign for SubgroupFeatures
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for SubgroupFeatures
impl Clone for SubgroupFeatures
source§fn clone(&self) -> SubgroupFeatures
fn clone(&self) -> SubgroupFeatures
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 SubgroupFeatures
impl Debug for SubgroupFeatures
source§impl Default for SubgroupFeatures
impl Default for SubgroupFeatures
source§impl From<SubgroupFeatureFlags> for SubgroupFeatures
impl From<SubgroupFeatureFlags> for SubgroupFeatures
source§fn from(val: SubgroupFeatureFlags) -> Self
fn from(val: SubgroupFeatureFlags) -> Self
Converts to this type from the input type.
source§impl From<SubgroupFeatures> for SubgroupFeatureFlags
impl From<SubgroupFeatures> for SubgroupFeatureFlags
source§fn from(val: SubgroupFeatures) -> Self
fn from(val: SubgroupFeatures) -> Self
Converts to this type from the input type.
source§impl Hash for SubgroupFeatures
impl Hash for SubgroupFeatures
source§impl PartialEq for SubgroupFeatures
impl PartialEq for SubgroupFeatures
source§fn eq(&self, other: &SubgroupFeatures) -> bool
fn eq(&self, other: &SubgroupFeatures) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for SubgroupFeatures
impl Sub for SubgroupFeatures
source§impl SubAssign for SubgroupFeatures
impl SubAssign for SubgroupFeatures
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for SubgroupFeatures
impl Eq for SubgroupFeatures
impl StructuralEq for SubgroupFeatures
impl StructuralPartialEq for SubgroupFeatures
Auto Trait Implementations§
impl RefUnwindSafe for SubgroupFeatures
impl Send for SubgroupFeatures
impl Sync for SubgroupFeatures
impl Unpin for SubgroupFeatures
impl UnwindSafe for SubgroupFeatures
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