pub fn with_erase_mask(self, new_erase_mask_texture: Option<TextureId>) -> ShaderType {
        use self::ShaderType::*;

        match self {
            Simple { erase_texture: _, clip_texture }                                                       => Simple           { erase_texture: new_erase_mask_texture, clip_texture: clip_texture },
            DashedLine { dash_texture, erase_texture: _, clip_texture }                                     => DashedLine       { dash_texture: dash_texture, erase_texture: new_erase_mask_texture, clip_texture: clip_texture },
            Texture { texture, texture_transform, repeat, alpha, erase_texture: _, clip_texture }           => Texture          { texture: texture, texture_transform: texture_transform, repeat, alpha, erase_texture: new_erase_mask_texture, clip_texture: clip_texture },
            LinearGradient { texture, texture_transform, repeat, alpha, erase_texture: _, clip_texture }    => LinearGradient   { texture: texture, texture_transform: texture_transform, repeat, alpha, erase_texture: new_erase_mask_texture, clip_texture: clip_texture }
        }
    }
///
/// Adds an erase mask texture to the existing shader
///
Adds an erase mask texture to the existing shader
Adds an erase mask texture to the existing shader
pub fn with_erase_mask(self, new_erase_mask_texture: Option<TextureId>) -> ShaderType {
        use self::ShaderType::*;
        match self {
            Simple { erase_texture: _, clip_texture }                                                       => Simple           { erase_texture: new_erase_mask_texture, clip_texture: clip_texture },
            DashedLine { dash_texture, erase_texture: _, clip_texture }                                     => DashedLine       { dash_texture: dash_texture, erase_texture: new_erase_mask_texture, clip_texture: clip_texture },
            Texture { texture, texture_transform, repeat, alpha, erase_texture: _, clip_texture }           => Texture          { texture: texture, texture_transform: texture_transform, repeat, alpha, erase_texture: new_erase_mask_texture, clip_texture: clip_texture },
            LinearGradient { texture, texture_transform, repeat, alpha, erase_texture: _, clip_texture }    => LinearGradient   { texture: texture, texture_transform: texture_transform, repeat, alpha, erase_texture: new_erase_mask_texture, clip_texture: clip_texture }
        }
    }
pub fn with_erase_mask ( self , new_erase_mask_texture : Option < TextureId > ) -> ShaderType { use self :: ShaderType :: * ; match self { Simple { erase_texture : _ , clip_texture } => Simple { erase_texture : new_erase_mask_texture , clip_texture : clip_texture } , DashedLine { dash_texture , erase_texture : _ , clip_texture } => DashedLine { dash_texture : dash_texture , erase_texture : new_erase_mask_texture , clip_texture : clip_texture } , Texture { texture , texture_transform , repeat , alpha , erase_texture : _ , clip_texture } => Texture { texture : texture , texture_transform : texture_transform , repeat , alpha , erase_texture : new_erase_mask_texture , clip_texture : clip_texture } , LinearGradient { texture , texture_transform , repeat , alpha , erase_texture : _ , clip_texture } => LinearGradient { texture : texture , texture_transform : texture_transform , repeat , alpha , erase_texture : new_erase_mask_texture , clip_texture : clip_texture } } }
Adds an erase mask texture to the existing shader
Adds an erase mask texture to the existing shader
self
new_erase_mask_texture
Option<TextureId>