Struct webrender::renderer::shade::BrushShader
source · struct BrushShader {
opaque: LazilyCompiledShader,
alpha: LazilyCompiledShader,
advanced_blend: Option<LazilyCompiledShader>,
dual_source: Option<LazilyCompiledShader>,
debug_overdraw: LazilyCompiledShader,
}
Fields§
§opaque: LazilyCompiledShader
§alpha: LazilyCompiledShader
§advanced_blend: Option<LazilyCompiledShader>
§dual_source: Option<LazilyCompiledShader>
§debug_overdraw: LazilyCompiledShader
Implementations§
source§impl BrushShader
impl BrushShader
fn new( name: &'static str, device: &mut Device, features: &[&'static str], precache_flags: ShaderPrecacheFlags, shader_list: &ShaderFeatures, use_advanced_blend: bool, use_dual_source: bool, profile: &mut TransactionProfile, ) -> Result<Self, ShaderError>
fn get( &mut self, blend_mode: BlendMode, features: BatchFeatures, debug_flags: DebugFlags, ) -> &mut LazilyCompiledShader
fn deinit(self, device: &mut Device)
Auto Trait Implementations§
impl Freeze for BrushShader
impl RefUnwindSafe for BrushShader
impl !Send for BrushShader
impl !Sync for BrushShader
impl Unpin for BrushShader
impl UnwindSafe for BrushShader
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