[−][src]Struct luminance_front::pipeline::TextureBinding
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 implementDimensionable
in most useful methods.S
is the sampler type. It must implementSamplerType
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, S> Debug for TextureBinding<D, S> where
D: Debug,
S: Debug,
[src]
D: Debug,
S: Debug,
impl<D, S> Uniformable<GL33> for TextureBinding<D, S> where
D: Dimensionable,
S: SamplerType,
[src]
D: Dimensionable,
S: SamplerType,
unsafe fn ty() -> UniformType
[src]
unsafe fn update(self, &mut Program, uniform: &Uniform<TextureBinding<D, S>>)
[src]
Auto Trait Implementations
impl<D, S> RefUnwindSafe for TextureBinding<D, S> where
D: RefUnwindSafe,
S: RefUnwindSafe,
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,
D: RefUnwindSafe,
S: RefUnwindSafe,
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,
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.
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>,