Struct wgpu_core::resource::BufferUse [−][src]
pub struct BufferUse { /* fields omitted */ }The internal enum mirrored from BufferUsage. The values don’t have to match!
Implementations
impl BufferUse[src]
impl BufferUse[src]pub const EMPTY: BufferUse[src]
pub const MAP_READ: BufferUse[src]
pub const MAP_WRITE: BufferUse[src]
pub const COPY_SRC: BufferUse[src]
pub const COPY_DST: BufferUse[src]
pub const INDEX: BufferUse[src]
pub const VERTEX: BufferUse[src]
pub const UNIFORM: BufferUse[src]
pub const STORAGE_LOAD: BufferUse[src]
pub const STORAGE_STORE: BufferUse[src]
pub const INDIRECT: BufferUse[src]
pub const READ_ALL: BufferUse[src]
The combination of all read-only usages.
pub const WRITE_ALL: BufferUse[src]
The combination of all write-only and read-write usages.
pub const ORDERED: BufferUse[src]
The combination of all usages that the are guaranteed to be be ordered by the hardware. If a usage is not ordered, then even if it doesn’t change between draw calls, there still need to be pipeline barriers inserted for synchronization.
pub const fn empty() -> BufferUse[src]
Returns an empty set of flags
pub const fn all() -> BufferUse[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u32[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<BufferUse>[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> BufferUse[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> BufferUse[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool[src]
Returns true if no flags are currently stored.
pub const fn is_all(&self) -> bool[src]
Returns true if all flags are currently set.
pub const fn intersects(&self, other: BufferUse) -> bool[src]
Returns true if there are flags common to both self and other.
pub const fn contains(&self, other: BufferUse) -> bool[src]
Returns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: BufferUse)[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: BufferUse)[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: BufferUse)[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: BufferUse, value: bool)[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl BitAndAssign<BufferUse> for BufferUse[src]
impl BitAndAssign<BufferUse> for BufferUse[src]fn bitand_assign(&mut self, other: BufferUse)[src]
Disables all flags disabled in the set.
impl BitOrAssign<BufferUse> for BufferUse[src]
impl BitOrAssign<BufferUse> for BufferUse[src]fn bitor_assign(&mut self, other: BufferUse)[src]
Adds the set of flags.
impl BitXorAssign<BufferUse> for BufferUse[src]
impl BitXorAssign<BufferUse> for BufferUse[src]fn bitxor_assign(&mut self, other: BufferUse)[src]
Toggles the set of flags.
impl Extend<BufferUse> for BufferUse[src]
impl Extend<BufferUse> for BufferUse[src]fn extend<T: IntoIterator<Item = BufferUse>>(&mut self, iterator: T)[src]
pub fn extend_one(&mut self, item: A)[src]
pub fn extend_reserve(&mut self, additional: usize)[src]
impl FromIterator<BufferUse> for BufferUse[src]
impl FromIterator<BufferUse> for BufferUse[src]fn from_iter<T: IntoIterator<Item = BufferUse>>(iterator: T) -> BufferUse[src]
impl PartialOrd<BufferUse> for BufferUse[src]
impl PartialOrd<BufferUse> for BufferUse[src]impl StructuralEq for BufferUse[src]
impl StructuralEq for BufferUse[src]impl StructuralPartialEq for BufferUse[src]
impl StructuralPartialEq for BufferUse[src]Auto Trait Implementations
impl RefUnwindSafe for BufferUse
impl RefUnwindSafe for BufferUseimpl UnwindSafe for BufferUse
impl UnwindSafe for BufferUseBlanket Implementations
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash, impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]