[−][src]Struct webrender::Shaders
Fields
cs_blur_a8: LazilyCompiledShader
cs_blur_rgba8: LazilyCompiledShader
cs_border_segment: LazilyCompiledShader
cs_border_solid: LazilyCompiledShader
cs_scale_a8: LazilyCompiledShader
cs_scale_rgba8: LazilyCompiledShader
cs_line_decoration: LazilyCompiledShader
cs_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: LazilyCompiledShader
cs_clip_image: LazilyCompiledShader
ps_text_run: TextShader
ps_text_run_dual_source: TextShader
Methods
impl Shaders
[src]
pub fn new(
device: &mut Device,
gl_type: GlType,
options: &RendererOptions
) -> Result<Self, ShaderError>
[src]
device: &mut Device,
gl_type: GlType,
options: &RendererOptions
) -> Result<Self, ShaderError>
pub fn get(
&mut self,
key: &BatchKey,
debug_flags: DebugFlags
) -> &mut LazilyCompiledShader
[src]
&mut self,
key: &BatchKey,
debug_flags: DebugFlags
) -> &mut LazilyCompiledShader
pub fn deinit(self, device: &mut Device)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self