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: TextureSourceImplementations§
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 duplicate 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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
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