Struct gfx::memory::Bind []

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]

[src]

Is this memory bound to be mutated ?

impl Bind

RENDER_TARGET: Bind = Bind{bits: 1,}

Can be rendered into.

DEPTH_STENCIL: Bind = Bind{bits: 2,}

Can serve as a depth/stencil target.

SHADER_RESOURCE: Bind = Bind{bits: 4,}

Can be bound to the shader for reading.

UNORDERED_ACCESS: Bind = Bind{bits: 8,}

Can be bound to the shader for writing.

TRANSFER_SRC: Bind = Bind{bits: 16,}

Can be transfered from.

TRANSFER_DST: Bind = Bind{bits: 32,}

Can be transfered into.

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl BitOr<Bind> for Bind

Returns the union of the two sets of flags.

impl Not for Bind

Returns the complement of this set of flags.

impl LowerHex for Bind

impl Clone for Bind

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Sub<Bind> for Bind

Returns the set difference of the two sets of flags.

impl Debug for Bind

Formats the value using the given formatter. Read more

impl Ord for Bind

impl BitXor<Bind> for Bind

Returns the left flags, but with all the right flags toggled.

impl Extend<Bind> for Bind

impl Eq for Bind

impl BitAnd<Bind> for Bind

Returns the intersection between the two sets of flags.

impl Copy for Bind

impl PartialOrd<Bind> for Bind

impl SubAssign<Bind> for Bind

Disables all flags enabled in the set.

impl BitAndAssign<Bind> for Bind

Disables all flags disabled in the set.

impl BitXorAssign<Bind> for Bind

Toggles the set of flags.

impl PartialEq<Bind> for Bind

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Bind

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl FromIterator<Bind> for Bind

impl Binary for Bind

impl Octal for Bind

impl UpperHex for Bind

impl BitOrAssign<Bind> for Bind

Adds the set of flags.