Enum webrender::renderer::TextureSampler
source · pub(crate) enum TextureSampler {
Color0,
Color1,
Color2,
GpuCache,
TransformPalette,
RenderTasks,
Dither,
PrimitiveHeadersF,
PrimitiveHeadersI,
ClipMask,
GpuBufferF,
GpuBufferI,
}
Expand description
Enumeration of the texture samplers used across the various WebRender shaders.
Each variant corresponds to a uniform declared in shader source. We only bind the variants we need for a given shader, so not every variant is bound for every batch.
Variants§
Color0
Color1
Color2
GpuCache
TransformPalette
RenderTasks
Dither
PrimitiveHeadersF
PrimitiveHeadersI
ClipMask
GpuBufferF
GpuBufferI
Implementations§
source§impl TextureSampler
impl TextureSampler
pub(crate) fn color(n: usize) -> TextureSampler
Trait Implementations§
source§impl Clone for TextureSampler
impl Clone for TextureSampler
source§fn clone(&self) -> TextureSampler
fn clone(&self) -> TextureSampler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TextureSampler
impl Debug for TextureSampler
source§impl Into<TextureSlot> for TextureSampler
impl Into<TextureSlot> for TextureSampler
source§fn into(self) -> TextureSlot
fn into(self) -> TextureSlot
Converts this type into the (usually inferred) input type.
source§impl PartialEq for TextureSampler
impl PartialEq for TextureSampler
source§fn eq(&self, other: &TextureSampler) -> bool
fn eq(&self, other: &TextureSampler) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TextureSampler
impl Eq for TextureSampler
impl StructuralPartialEq for TextureSampler
Auto Trait Implementations§
impl Freeze for TextureSampler
impl RefUnwindSafe for TextureSampler
impl Send for TextureSampler
impl Sync for TextureSampler
impl Unpin for TextureSampler
impl UnwindSafe for TextureSampler
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more