[][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_a8: LazilyCompiledShader,
    pub cs_scale_rgba8: LazilyCompiledShader,
    pub cs_line_decoration: LazilyCompiledShader,
    pub cs_clip_rectangle: LazilyCompiledShader,
    pub cs_clip_box_shadow: LazilyCompiledShader,
    pub cs_clip_image: LazilyCompiledShader,
    pub ps_text_run: TextShader,
    pub ps_text_run_dual_source: TextShader,
    // some fields omitted
}

Fields

cs_blur_a8: LazilyCompiledShadercs_blur_rgba8: LazilyCompiledShadercs_border_segment: LazilyCompiledShadercs_border_solid: LazilyCompiledShadercs_scale_a8: LazilyCompiledShadercs_scale_rgba8: LazilyCompiledShadercs_line_decoration: LazilyCompiledShadercs_clip_rectangle: 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_box_shadow: LazilyCompiledShadercs_clip_image: LazilyCompiledShaderps_text_run: TextShaderps_text_run_dual_source: TextShader

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,
    debug_flags: DebugFlags
) -> &mut LazilyCompiledShader
[src]

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

Auto Trait Implementations

impl Send for Shaders

impl Sync for Shaders

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self