Struct webrender::batch::BatchTextures
source · pub struct BatchTextures {
pub input: TextureSet,
pub clip_mask: TextureSource,
}
Expand description
Optional textures that can be used as a source in the shaders. Textures that are not used by the batch are equal to TextureId::invalid().
Fields§
§input: TextureSet
§clip_mask: TextureSource
Implementations§
source§impl BatchTextures
impl BatchTextures
sourcepub fn empty() -> BatchTextures
pub fn empty() -> BatchTextures
An empty batch textures (no binding slots set)
sourcepub fn prim_textured(
color: TextureSource,
clip_mask: TextureSource,
) -> BatchTextures
pub fn prim_textured( color: TextureSource, clip_mask: TextureSource, ) -> BatchTextures
A textured primitive with optional clip mask
sourcepub fn prim_untextured(clip_mask: TextureSource) -> BatchTextures
pub fn prim_untextured(clip_mask: TextureSource) -> BatchTextures
An untextured primitive with optional clip mask
sourcepub fn composite_rgb(texture: TextureSource) -> BatchTextures
pub fn composite_rgb(texture: TextureSource) -> BatchTextures
A composite style effect with single input texture
sourcepub fn composite_yuv(
color0: TextureSource,
color1: TextureSource,
color2: TextureSource,
) -> BatchTextures
pub fn composite_yuv( color0: TextureSource, color1: TextureSource, color2: TextureSource, ) -> BatchTextures
A composite style effect with up to 3 input textures
pub fn is_compatible_with(&self, other: &BatchTextures) -> bool
pub fn combine_textures(&self, other: BatchTextures) -> Option<BatchTextures>
fn merge(&mut self, other: &BatchTextures)
Trait Implementations§
source§impl Clone for BatchTextures
impl Clone for BatchTextures
source§fn clone(&self) -> BatchTextures
fn clone(&self) -> BatchTextures
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 BatchTextures
impl Debug for BatchTextures
source§impl Serialize for BatchTextures
impl Serialize for BatchTextures
impl Copy for BatchTextures
Auto Trait Implementations§
impl Freeze for BatchTextures
impl RefUnwindSafe for BatchTextures
impl Send for BatchTextures
impl Sync for BatchTextures
impl Unpin for BatchTextures
impl UnwindSafe for BatchTextures
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