Struct bevy_retrograde::core::luminance::pipeline::TextureBinding [−]
pub struct TextureBinding<D, S> { /* fields omitted */ }
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
impl<D, S> TextureBinding<D, S>
impl<D, S> TextureBinding<D, S>
Trait Implementations
impl<D, S> Debug for TextureBinding<D, S> where
S: Debug,
D: Debug,
impl<D, S> Debug for TextureBinding<D, S> where
S: Debug,
D: Debug,
impl<D, S> Uniformable<Glow> for TextureBinding<D, S> where
S: SamplerType,
D: Dimensionable,
impl<D, S> Uniformable<Glow> for TextureBinding<D, S> where
S: SamplerType,
D: Dimensionable,
pub unsafe fn ty() -> UniformType
pub unsafe fn update(
self,
program: &mut Program,
uniform: &Uniform<TextureBinding<D, S>>
)
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
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V