Struct luminance::pipeline::TextureBinding
source · [−]pub struct TextureBinding<D, S> { /* private fields */ }
Expand description
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
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more