[][src]Struct luminance::pipeline::TextureBinding

pub struct TextureBinding<D, S> { /* fields omitted */ }

Opaque texture binding.

This type represents a bound Texture via BoundTexture. It can be used along with a Uniform to customize a shader’s behavior.

Parametricity

  • D is the dimension of the original texture. It must implement Dimensionable in most useful methods.
  • S is the sampler type. It must implement SamplerType in most useful methods.

Notes

You shouldn’t try to do store / cache or do anything special with that value. Consider it an opaque object.

Implementations

impl<D, S> TextureBinding<D, S>[src]

pub fn binding(self) -> u32[src]

Access the underlying binding value.

Notes

That value shouldn’t be read nor store, as it’s only meaningful for backend implementations.

Trait Implementations

impl<D: Debug, S: Debug> Debug for TextureBinding<D, S>[src]

Auto Trait Implementations

impl<D, S> RefUnwindSafe for TextureBinding<D, S> where
    D: RefUnwindSafe,
    S: RefUnwindSafe

impl<D, S> !Send for TextureBinding<D, S>

impl<D, S> !Sync for TextureBinding<D, S>

impl<D, S> Unpin for TextureBinding<D, S>

impl<D, S> UnwindSafe for TextureBinding<D, S> where
    D: RefUnwindSafe,
    S: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.