Struct gfx::memory::Bind
[−]
[src]
pub struct Bind { /* fields omitted */ }
Flags providing information about the usage of a resource.
A Bind
value can be a combination of the following bit patterns:
This information is used to create resources (see gfx::Factory).
Methods
impl Bind
[src]
fn is_mutable(&self) -> bool
[src]
Is this memory bound to be mutated ?
impl Bind
[src]
const RENDER_TARGET: Bind
RENDER_TARGET: Bind = Bind{bits: 1,}
const DEPTH_STENCIL: Bind
DEPTH_STENCIL: Bind = Bind{bits: 2,}
const SHADER_RESOURCE: Bind
SHADER_RESOURCE: Bind = Bind{bits: 4,}
const UNORDERED_ACCESS: Bind
UNORDERED_ACCESS: Bind = Bind{bits: 8,}
const TRANSFER_SRC: Bind
TRANSFER_SRC: Bind = Bind{bits: 16,}
const TRANSFER_DST: Bind
TRANSFER_DST: Bind = Bind{bits: 32,}
fn empty() -> Bind
[src]
Returns an empty set of flags.
fn all() -> Bind
[src]
Returns the set containing all flags.
fn bits(&self) -> u8
[src]
Returns the raw value of the flags currently stored.
fn from_bits(bits: u8) -> Option<Bind>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u8) -> Bind
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
fn intersects(&self, other: Bind) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: Bind) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: Bind)
[src]
Inserts the specified flags in-place.
fn remove(&mut self, other: Bind)
[src]
Removes the specified flags in-place.
fn toggle(&mut self, other: Bind)
[src]
Toggles the specified flags in-place.
fn set(&mut self, other: Bind, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Ord for Bind
[src]
impl Copy for Bind
[src]
impl Clone for Bind
[src]
fn clone(&self) -> Bind
[src]
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 BitAndAssign<Bind> for Bind
[src]
fn bitand_assign(&mut self, other: Bind)
[src]
Disables all flags disabled in the set.
impl BitAnd<Bind> for Bind
[src]
type Output = Bind
fn bitand(self, other: Bind) -> Bind
[src]
Returns the intersection between the two sets of flags.
impl UpperHex for Bind
[src]
impl PartialOrd<Bind> for Bind
[src]
fn partial_cmp(&self, __arg_0: &Bind) -> Option<Ordering>
[src]
fn lt(&self, __arg_0: &Bind) -> bool
[src]
fn le(&self, __arg_0: &Bind) -> bool
[src]
fn gt(&self, __arg_0: &Bind) -> bool
[src]
fn ge(&self, __arg_0: &Bind) -> bool
[src]
impl Not for Bind
[src]
impl Hash for Bind
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
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 BitXor<Bind> for Bind
[src]
type Output = Bind
fn bitxor(self, other: Bind) -> Bind
[src]
Returns the left flags, but with all the right flags toggled.
impl BitOr<Bind> for Bind
[src]
type Output = Bind
fn bitor(self, other: Bind) -> Bind
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<Bind> for Bind
[src]
fn bitor_assign(&mut self, other: Bind)
[src]
Adds the set of flags.
impl Octal for Bind
[src]
impl PartialEq<Bind> for Bind
[src]
fn eq(&self, __arg_0: &Bind) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Bind) -> bool
[src]
This method tests for !=
.
impl Debug for Bind
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl Extend<Bind> for Bind
[src]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = Bind>,
[src]
T: IntoIterator<Item = Bind>,
impl SubAssign<Bind> for Bind
[src]
fn sub_assign(&mut self, other: Bind)
[src]
Disables all flags enabled in the set.
impl BitXorAssign<Bind> for Bind
[src]
fn bitxor_assign(&mut self, other: Bind)
[src]
Toggles the set of flags.
impl Eq for Bind
[src]
impl Binary for Bind
[src]
impl FromIterator<Bind> for Bind
[src]
fn from_iter<T>(iterator: T) -> Bind where
T: IntoIterator<Item = Bind>,
[src]
T: IntoIterator<Item = Bind>,