Enum webrender::texture_cache::TargetShader
source · pub enum TargetShader {
Default,
Text,
}
Expand description
Information about which shader will use the entry.
For batching purposes, it’s beneficial to group some items in their own textures if we know that they are used by a specific shader.
Variants§
Trait Implementations§
source§impl Clone for TargetShader
impl Clone for TargetShader
source§fn clone(&self) -> TargetShader
fn clone(&self) -> TargetShader
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 TargetShader
impl Debug for TargetShader
source§impl PartialEq for TargetShader
impl PartialEq for TargetShader
source§fn eq(&self, other: &TargetShader) -> bool
fn eq(&self, other: &TargetShader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TargetShader
impl Serialize for TargetShader
impl Copy for TargetShader
impl Eq for TargetShader
impl StructuralPartialEq for TargetShader
Auto Trait Implementations§
impl Freeze for TargetShader
impl RefUnwindSafe for TargetShader
impl Send for TargetShader
impl Sync for TargetShader
impl Unpin for TargetShader
impl UnwindSafe for TargetShader
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