Struct voodoo::BufferUsageFlags
[−]
#[repr(C)]pub struct BufferUsageFlags { /* fields omitted */ }
Methods
impl BufferUsageFlags
const FLAG_BITS_MAX_ENUM: BufferUsageFlags
FLAG_BITS_MAX_ENUM: BufferUsageFlags = BufferUsageFlags{bits: 2147483647,}
const TRANSFER_SRC: BufferUsageFlags
TRANSFER_SRC: BufferUsageFlags = BufferUsageFlags{bits: 1,}
const TRANSFER_DST: BufferUsageFlags
TRANSFER_DST: BufferUsageFlags = BufferUsageFlags{bits: 2,}
const UNIFORM_TEXEL_BUFFER: BufferUsageFlags
UNIFORM_TEXEL_BUFFER: BufferUsageFlags = BufferUsageFlags{bits: 4,}
const STORAGE_TEXEL_BUFFER: BufferUsageFlags
STORAGE_TEXEL_BUFFER: BufferUsageFlags = BufferUsageFlags{bits: 8,}
const UNIFORM_BUFFER: BufferUsageFlags
UNIFORM_BUFFER: BufferUsageFlags = BufferUsageFlags{bits: 16,}
const STORAGE_BUFFER: BufferUsageFlags
STORAGE_BUFFER: BufferUsageFlags = BufferUsageFlags{bits: 32,}
const INDEX_BUFFER: BufferUsageFlags
INDEX_BUFFER: BufferUsageFlags = BufferUsageFlags{bits: 64,}
const VERTEX_BUFFER: BufferUsageFlags
VERTEX_BUFFER: BufferUsageFlags = BufferUsageFlags{bits: 128,}
const INDIRECT_BUFFER: BufferUsageFlags
INDIRECT_BUFFER: BufferUsageFlags = BufferUsageFlags{bits: 256,}
fn empty() -> BufferUsageFlags
Returns an empty set of flags.
fn all() -> BufferUsageFlags
Returns the set containing all flags.
fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
fn from_bits(bits: u32) -> Option<BufferUsageFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u32) -> BufferUsageFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: BufferUsageFlags) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: BufferUsageFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: BufferUsageFlags)
Inserts the specified flags in-place.
fn remove(&mut self, other: BufferUsageFlags)
Removes the specified flags in-place.
fn toggle(&mut self, other: BufferUsageFlags)
Toggles the specified flags in-place.
fn set(&mut self, other: BufferUsageFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for BufferUsageFlags
impl PartialEq for BufferUsageFlags
fn eq(&self, __arg_0: &BufferUsageFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BufferUsageFlags) -> bool
This method tests for !=
.
impl Eq for BufferUsageFlags
impl Clone for BufferUsageFlags
fn clone(&self) -> BufferUsageFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd for BufferUsageFlags
fn partial_cmp(&self, __arg_0: &BufferUsageFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &BufferUsageFlags) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &BufferUsageFlags) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &BufferUsageFlags) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &BufferUsageFlags) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for BufferUsageFlags
fn cmp(&self, __arg_0: &BufferUsageFlags) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for BufferUsageFlags
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Default for BufferUsageFlags
[src]
fn default() -> BufferUsageFlags
[src]
Returns the "default value" for a type. Read more
impl Debug for BufferUsageFlags
impl Binary for BufferUsageFlags
impl Octal for BufferUsageFlags
impl LowerHex for BufferUsageFlags
impl UpperHex for BufferUsageFlags
impl BitOr for BufferUsageFlags
type Output = BufferUsageFlags
The resulting type after applying the |
operator.
fn bitor(self, other: BufferUsageFlags) -> BufferUsageFlags
Returns the union of the two sets of flags.
impl BitOrAssign for BufferUsageFlags
fn bitor_assign(&mut self, other: BufferUsageFlags)
Adds the set of flags.
impl BitXor for BufferUsageFlags
type Output = BufferUsageFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: BufferUsageFlags) -> BufferUsageFlags
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for BufferUsageFlags
fn bitxor_assign(&mut self, other: BufferUsageFlags)
Toggles the set of flags.
impl BitAnd for BufferUsageFlags
type Output = BufferUsageFlags
The resulting type after applying the &
operator.
fn bitand(self, other: BufferUsageFlags) -> BufferUsageFlags
Returns the intersection between the two sets of flags.
impl BitAndAssign for BufferUsageFlags
fn bitand_assign(&mut self, other: BufferUsageFlags)
Disables all flags disabled in the set.
impl Sub for BufferUsageFlags
type Output = BufferUsageFlags
The resulting type after applying the -
operator.
fn sub(self, other: BufferUsageFlags) -> BufferUsageFlags
Returns the set difference of the two sets of flags.
impl SubAssign for BufferUsageFlags
fn sub_assign(&mut self, other: BufferUsageFlags)
Disables all flags enabled in the set.
impl Not for BufferUsageFlags
type Output = BufferUsageFlags
The resulting type after applying the !
operator.
fn not(self) -> BufferUsageFlags
Returns the complement of this set of flags.
impl Extend<BufferUsageFlags> for BufferUsageFlags
fn extend<T: IntoIterator<Item = BufferUsageFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<BufferUsageFlags> for BufferUsageFlags
fn from_iter<T: IntoIterator<Item = BufferUsageFlags>>(
iterator: T
) -> BufferUsageFlags
iterator: T
) -> BufferUsageFlags
Creates a value from an iterator. Read more