[][src]Struct webrender::Shaders

pub struct Shaders {
    pub cs_blur_a8: LazilyCompiledShader,
    pub cs_blur_rgba8: LazilyCompiledShader,
    pub cs_border_segment: LazilyCompiledShader,
    pub cs_border_solid: LazilyCompiledShader,
    pub cs_scale: LazilyCompiledShader,
    pub cs_line_decoration: LazilyCompiledShader,
    pub cs_gradient: LazilyCompiledShader,
    pub cs_svg_filter: LazilyCompiledShader,
    pub cs_clip_rectangle_slow: LazilyCompiledShader,
    pub cs_clip_rectangle_fast: LazilyCompiledShader,
    pub cs_clip_box_shadow: LazilyCompiledShader,
    pub cs_clip_image: LazilyCompiledShader,
    pub ps_text_run: TextShader,
    pub ps_text_run_dual_source: TextShader,
    pub pls_init: LazilyCompiledShader,
    pub pls_resolve: LazilyCompiledShader,
    pub composite: LazilyCompiledShader,
    // some fields omitted
}

Fields

cs_blur_a8: LazilyCompiledShadercs_blur_rgba8: LazilyCompiledShadercs_border_segment: LazilyCompiledShadercs_border_solid: LazilyCompiledShadercs_scale: LazilyCompiledShadercs_line_decoration: LazilyCompiledShadercs_gradient: LazilyCompiledShadercs_svg_filter: LazilyCompiledShadercs_clip_rectangle_slow: LazilyCompiledShader

These are "cache clip shaders". These shaders are used to draw clip instances into the cached clip mask. The results of these shaders are also used by the primitive shaders.

cs_clip_rectangle_fast: LazilyCompiledShadercs_clip_box_shadow: LazilyCompiledShadercs_clip_image: LazilyCompiledShaderps_text_run: TextShaderps_text_run_dual_source: TextShaderpls_init: LazilyCompiledShaderpls_resolve: LazilyCompiledShadercomposite: LazilyCompiledShader

Methods

impl Shaders[src]

pub fn new(
    device: &mut Device,
    gl_type: GlType,
    options: &RendererOptions
) -> Result<Self, ShaderError>
[src]

pub fn get(
    &mut self,
    key: &BatchKey,
    features: BatchFeatures,
    debug_flags: DebugFlags
) -> &mut LazilyCompiledShader
[src]

pub fn deinit(self, device: &mut Device)[src]

Auto Trait Implementations

impl RefUnwindSafe for Shaders

impl Send for Shaders

impl Sync for Shaders

impl Unpin for Shaders

impl UnwindSafe for Shaders

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.