pub enum EitherSampler<'t> {
Regular2d(Sampler<'t, Texture2d>),
Srgb2d(Sampler<'t, SrgbTexture2d>),
}Available on crate feature
glium only.Variants§
Trait Implementations§
Source§impl AsUniformValue for EitherSampler<'_>
impl AsUniformValue for EitherSampler<'_>
Source§fn as_uniform_value(&self) -> UniformValue<'_>
fn as_uniform_value(&self) -> UniformValue<'_>
Builds a
UniformValue.Auto Trait Implementations§
impl<'t> Freeze for EitherSampler<'t>
impl<'t> !RefUnwindSafe for EitherSampler<'t>
impl<'t> !Send for EitherSampler<'t>
impl<'t> !Sync for EitherSampler<'t>
impl<'t> Unpin for EitherSampler<'t>
impl<'t> !UnwindSafe for EitherSampler<'t>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more