pub struct RegionBarrier { /* private fields */ }
Expand description
Memory barrier for by-region dependencies.
Implementations§
Source§impl RegionBarrier
impl RegionBarrier
pub const UNIFORM_READ: RegionBarrier
pub const SAMPLED_IMAGE_READ: RegionBarrier
pub const STORAGE_IMAGE_RW: RegionBarrier
pub const STORAGE_BUFFER_RW: RegionBarrier
pub const FRAMEBUFFER_RW: RegionBarrier
pub const ATOMIC_COUNTER_RW: RegionBarrier
Sourcepub const fn empty() -> RegionBarrier
pub const fn empty() -> RegionBarrier
Returns an empty set of flags
Sourcepub const fn all() -> RegionBarrier
pub const fn all() -> RegionBarrier
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<RegionBarrier>
pub fn from_bits(bits: u32) -> Option<RegionBarrier>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> RegionBarrier
pub const fn from_bits_truncate(bits: u32) -> RegionBarrier
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> RegionBarrier
pub const unsafe fn from_bits_unchecked(bits: u32) -> RegionBarrier
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: RegionBarrier) -> bool
pub const fn intersects(&self, other: RegionBarrier) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: RegionBarrier) -> bool
pub const fn contains(&self, other: RegionBarrier) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: RegionBarrier)
pub fn insert(&mut self, other: RegionBarrier)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: RegionBarrier)
pub fn remove(&mut self, other: RegionBarrier)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: RegionBarrier)
pub fn toggle(&mut self, other: RegionBarrier)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: RegionBarrier, value: bool)
pub fn set(&mut self, other: RegionBarrier, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for RegionBarrier
impl Binary for RegionBarrier
Source§impl BitAnd for RegionBarrier
impl BitAnd for RegionBarrier
Source§fn bitand(self, other: RegionBarrier) -> RegionBarrier
fn bitand(self, other: RegionBarrier) -> RegionBarrier
Returns the intersection between the two sets of flags.
Source§type Output = RegionBarrier
type Output = RegionBarrier
&
operator.Source§impl BitAndAssign for RegionBarrier
impl BitAndAssign for RegionBarrier
Source§fn bitand_assign(&mut self, other: RegionBarrier)
fn bitand_assign(&mut self, other: RegionBarrier)
Disables all flags disabled in the set.
Source§impl BitOr for RegionBarrier
impl BitOr for RegionBarrier
Source§fn bitor(self, other: RegionBarrier) -> RegionBarrier
fn bitor(self, other: RegionBarrier) -> RegionBarrier
Returns the union of the two sets of flags.
Source§type Output = RegionBarrier
type Output = RegionBarrier
|
operator.Source§impl BitOrAssign for RegionBarrier
impl BitOrAssign for RegionBarrier
Source§fn bitor_assign(&mut self, other: RegionBarrier)
fn bitor_assign(&mut self, other: RegionBarrier)
Adds the set of flags.
Source§impl BitXor for RegionBarrier
impl BitXor for RegionBarrier
Source§fn bitxor(self, other: RegionBarrier) -> RegionBarrier
fn bitxor(self, other: RegionBarrier) -> RegionBarrier
Returns the left flags, but with all the right flags toggled.
Source§type Output = RegionBarrier
type Output = RegionBarrier
^
operator.Source§impl BitXorAssign for RegionBarrier
impl BitXorAssign for RegionBarrier
Source§fn bitxor_assign(&mut self, other: RegionBarrier)
fn bitxor_assign(&mut self, other: RegionBarrier)
Toggles the set of flags.
Source§impl Clone for RegionBarrier
impl Clone for RegionBarrier
Source§fn clone(&self) -> RegionBarrier
fn clone(&self) -> RegionBarrier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RegionBarrier
impl Debug for RegionBarrier
Source§impl Extend<RegionBarrier> for RegionBarrier
impl Extend<RegionBarrier> for RegionBarrier
Source§fn extend<T: IntoIterator<Item = RegionBarrier>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = RegionBarrier>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<RegionBarrier> for RegionBarrier
impl FromIterator<RegionBarrier> for RegionBarrier
Source§fn from_iter<T: IntoIterator<Item = RegionBarrier>>(
iterator: T,
) -> RegionBarrier
fn from_iter<T: IntoIterator<Item = RegionBarrier>>( iterator: T, ) -> RegionBarrier
Source§impl Hash for RegionBarrier
impl Hash for RegionBarrier
Source§impl LowerHex for RegionBarrier
impl LowerHex for RegionBarrier
Source§impl Not for RegionBarrier
impl Not for RegionBarrier
Source§fn not(self) -> RegionBarrier
fn not(self) -> RegionBarrier
Returns the complement of this set of flags.
Source§type Output = RegionBarrier
type Output = RegionBarrier
!
operator.Source§impl Octal for RegionBarrier
impl Octal for RegionBarrier
Source§impl Ord for RegionBarrier
impl Ord for RegionBarrier
Source§fn cmp(&self, other: &RegionBarrier) -> Ordering
fn cmp(&self, other: &RegionBarrier) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RegionBarrier
impl PartialEq for RegionBarrier
Source§impl PartialOrd for RegionBarrier
impl PartialOrd for RegionBarrier
Source§impl Sub for RegionBarrier
impl Sub for RegionBarrier
Source§fn sub(self, other: RegionBarrier) -> RegionBarrier
fn sub(self, other: RegionBarrier) -> RegionBarrier
Returns the set difference of the two sets of flags.
Source§type Output = RegionBarrier
type Output = RegionBarrier
-
operator.Source§impl SubAssign for RegionBarrier
impl SubAssign for RegionBarrier
Source§fn sub_assign(&mut self, other: RegionBarrier)
fn sub_assign(&mut self, other: RegionBarrier)
Disables all flags enabled in the set.