Enum flo_render_canvas::ShaderType [−][src]
pub enum ShaderType { Simple { erase_texture: Option<TextureId>, clip_texture: Option<TextureId>, }, DashedLine { dash_texture: TextureId, erase_texture: Option<TextureId>, clip_texture: Option<TextureId>, }, Texture { texture: TextureId, texture_transform: Matrix, repeat: bool, alpha: f32, erase_texture: Option<TextureId>, clip_texture: Option<TextureId>, }, LinearGradient { texture: TextureId, texture_transform: Matrix, repeat: bool, alpha: f32, erase_texture: Option<TextureId>, clip_texture: Option<TextureId>, }, }
Expand description
The shaders that can be chosen for the renderer
Variants
Flat colour shader The erase texture (which should be a MSAA texture) is subtracted from anything drawn, if present
Flat colour with ‘dashed line’ texturing using a 1D texture
Fields of DashedLine
Colour derived from a texture with a transform mapping from canvas coordinates to texture coordinates
Fields of Texture
Colour dervide from a 1D texture using a transform mapping (used for rendering linear gradients)
Fields of LinearGradient
Implementations
Adds an erase mask texture to the existing shader
Adds a clip mask texture to the existing shader
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ShaderType
impl Send for ShaderType
impl Sync for ShaderType
impl Unpin for ShaderType
impl UnwindSafe for ShaderType
Blanket Implementations
Mutably borrows from an owned value. Read more