Struct webrender::renderer::shade::TextShader
source · pub struct TextShader {
simple: LazilyCompiledShader,
glyph_transform: LazilyCompiledShader,
debug_overdraw: LazilyCompiledShader,
}
Fields§
§simple: LazilyCompiledShader
§glyph_transform: LazilyCompiledShader
§debug_overdraw: LazilyCompiledShader
Implementations§
source§impl TextShader
impl TextShader
fn new( name: &'static str, device: &mut Device, features: &[&'static str], precache_flags: ShaderPrecacheFlags, shader_list: &ShaderFeatures, profile: &mut TransactionProfile, ) -> Result<Self, ShaderError>
pub fn get( &mut self, glyph_format: GlyphFormat, debug_flags: DebugFlags, ) -> &mut LazilyCompiledShader
fn deinit(self, device: &mut Device)
Auto Trait Implementations§
impl Freeze for TextShader
impl RefUnwindSafe for TextShader
impl !Send for TextShader
impl !Sync for TextShader
impl Unpin for TextShader
impl UnwindSafe for TextShader
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