pub struct Shaders { /* private fields */ }
Implementations§
Source§impl Shaders
impl Shaders
pub fn new( device: &mut Device, gl_type: GlType, options: &WebRenderOptions, ) -> Result<Self, ShaderError>
pub fn precache_all( &mut self, precache_flags: ShaderPrecacheFlags, ) -> PendingShadersToPrecache
Sourcepub fn resume_precache(
&mut self,
device: &mut Device,
pending_shaders: &mut PendingShadersToPrecache,
) -> Result<bool, ShaderError>
pub fn resume_precache( &mut self, device: &mut Device, pending_shaders: &mut PendingShadersToPrecache, ) -> Result<bool, ShaderError>
Returns true if another call is needed, false if precaching is finished.
pub fn get_composite_shader( &mut self, format: CompositeSurfaceFormat, buffer_kind: ImageBufferKind, features: CompositeFeatures, ) -> &mut LazilyCompiledShader
pub fn get_scale_shader( &mut self, buffer_kind: ImageBufferKind, ) -> &mut LazilyCompiledShader
pub fn get_quad_shader( &mut self, pattern: PatternKind, ) -> &mut LazilyCompiledShader
pub fn get( &mut self, key: &BatchKey, features: BatchFeatures, debug_flags: DebugFlags, device: &Device, ) -> &mut LazilyCompiledShader
pub fn get_handle( &mut self, key: &BatchKey, features: BatchFeatures, debug_flags: DebugFlags, device: &Device, ) -> ShaderHandle
pub fn cs_blur_rgba8(&mut self) -> &mut LazilyCompiledShader
pub fn cs_border_segment(&mut self) -> &mut LazilyCompiledShader
pub fn cs_border_solid(&mut self) -> &mut LazilyCompiledShader
pub fn cs_line_decoration(&mut self) -> &mut LazilyCompiledShader
pub fn cs_fast_linear_gradient(&mut self) -> &mut LazilyCompiledShader
pub fn cs_linear_gradient(&mut self) -> &mut LazilyCompiledShader
pub fn cs_radial_gradient(&mut self) -> &mut LazilyCompiledShader
pub fn cs_conic_gradient(&mut self) -> &mut LazilyCompiledShader
pub fn cs_svg_filter(&mut self) -> &mut LazilyCompiledShader
pub fn cs_svg_filter_node(&mut self) -> &mut LazilyCompiledShader
pub fn cs_clip_rectangle_slow(&mut self) -> &mut LazilyCompiledShader
pub fn cs_clip_rectangle_fast(&mut self) -> &mut LazilyCompiledShader
pub fn cs_clip_box_shadow(&mut self) -> &mut LazilyCompiledShader
pub fn ps_quad_textured(&mut self) -> &mut LazilyCompiledShader
pub fn ps_mask(&mut self) -> &mut LazilyCompiledShader
pub fn ps_mask_fast(&mut self) -> &mut LazilyCompiledShader
pub fn ps_clear(&mut self) -> &mut LazilyCompiledShader
pub fn ps_copy(&mut self) -> &mut LazilyCompiledShader
pub fn deinit(self, device: &mut Device)
Auto Trait Implementations§
impl Freeze for Shaders
impl RefUnwindSafe for Shaders
impl !Send for Shaders
impl !Sync for Shaders
impl Unpin for Shaders
impl UnwindSafe for Shaders
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