[][src]Struct luminance::pipeline::BoundTexture

pub struct BoundTexture<'a, B, D, P> where
    B: PipelineTexture<D, P>,
    D: Dimensionable,
    P: Pixel
{ /* fields omitted */ }

A bound Texture.

Parametricity

Notes

Once a Texture is bound, it can be used and passed around to shaders. In order to do so, you will need to pass a TextureBinding to your ProgramInterface. That value is unique to each BoundTexture and should always be asked — you shouldn’t cache them, for instance.

Getting a TextureBinding is a cheap operation and is performed via the BoundTexture::binding method.

Implementations

impl<'a, B, D, P> BoundTexture<'a, B, D, P> where
    B: PipelineTexture<D, P>,
    D: Dimensionable,
    P: Pixel
[src]

pub fn binding(&self) -> TextureBinding<D, P::SamplerType>[src]

Obtain a TextureBinding object that can be used to refer to this bound texture in shader stages.

Notes

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

Auto Trait Implementations

impl<'a, B, D, P> RefUnwindSafe for BoundTexture<'a, B, D, P> where
    <B as PipelineTexture<D, P>>::BoundTextureRepr: RefUnwindSafe

impl<'a, B, D, P> Send for BoundTexture<'a, B, D, P> where
    <B as PipelineTexture<D, P>>::BoundTextureRepr: Send

impl<'a, B, D, P> Sync for BoundTexture<'a, B, D, P> where
    <B as PipelineTexture<D, P>>::BoundTextureRepr: Sync

impl<'a, B, D, P> Unpin for BoundTexture<'a, B, D, P> where
    <B as PipelineTexture<D, P>>::BoundTextureRepr: Unpin

impl<'a, B, D, P> UnwindSafe for BoundTexture<'a, B, D, P> where
    <B as PipelineTexture<D, P>>::BoundTextureRepr: UnwindSafe

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.