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]

[src]

Is this memory bound to be mutated ?

impl Bind
[src]

RENDER_TARGET: Bind = Bind{bits: 1,}

DEPTH_STENCIL: Bind = Bind{bits: 2,}

SHADER_RESOURCE: Bind = Bind{bits: 4,}

UNORDERED_ACCESS: Bind = Bind{bits: 8,}

TRANSFER_SRC: Bind = Bind{bits: 16,}

TRANSFER_DST: Bind = Bind{bits: 32,}

[src]

Returns an empty set of flags.

[src]

Returns the set containing all flags.

[src]

Returns the raw value of the flags currently stored.

[src]

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

[src]

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

[src]

Returns true if no flags are currently stored.

[src]

Returns true if all flags are currently set.

[src]

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

[src]

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

[src]

Inserts the specified flags in-place.

[src]

Removes the specified flags in-place.

[src]

Toggles the specified flags in-place.

[src]

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

Trait Implementations

impl Ord for Bind
[src]

[src]

impl Copy for Bind
[src]

impl Clone for Bind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl BitAndAssign<Bind> for Bind
[src]

[src]

Disables all flags disabled in the set.

impl BitAnd<Bind> for Bind
[src]

[src]

Returns the intersection between the two sets of flags.

impl UpperHex for Bind
[src]

[src]

impl PartialOrd<Bind> for Bind
[src]

[src]

[src]

[src]

[src]

[src]

impl Not for Bind
[src]

[src]

Returns the complement of this set of flags.

impl Hash for Bind
[src]

[src]

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 BitXor<Bind> for Bind
[src]

[src]

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

impl BitOr<Bind> for Bind
[src]

[src]

Returns the union of the two sets of flags.

impl BitOrAssign<Bind> for Bind
[src]

[src]

Adds the set of flags.

impl Octal for Bind
[src]

[src]

impl PartialEq<Bind> for Bind
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Bind
[src]

[src]

Formats the value using the given formatter.

impl Extend<Bind> for Bind
[src]

[src]

impl SubAssign<Bind> for Bind
[src]

[src]

Disables all flags enabled in the set.

impl BitXorAssign<Bind> for Bind
[src]

[src]

Toggles the set of flags.

impl Eq for Bind
[src]

impl Binary for Bind
[src]

[src]

impl FromIterator<Bind> for Bind
[src]

[src]

impl LowerHex for Bind
[src]

[src]

impl Sub<Bind> for Bind
[src]

[src]

Returns the set difference of the two sets of flags.