[−][src]Struct luminance::pipeline::BoundTexture
A bound Texture
.
Parametricity
B
is the backend type. It must implementPipelineTexture
.D
is the dimension. It must implementDimensionable
.P
is the pixel type. It must implementPixel
.
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]
B: PipelineTexture<D, P>,
D: Dimensionable,
P: Pixel,
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,
<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,
<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,
<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,
<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,
<B as PipelineTexture<D, P>>::BoundTextureRepr: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,