Type Definition skia_safe::runtime_effect::RuntimeEffect
source · pub type RuntimeEffect = RCHandle<SkRuntimeEffect>;
Implementations§
source§impl RuntimeEffect
impl RuntimeEffect
pub fn make_for_color_filer<'a>( sksl: impl AsRef<str>, options: impl Into<Option<&'a Options>> ) -> Result<RuntimeEffect, String>
pub fn make_for_shader<'a>( sksl: impl AsRef<str>, options: impl Into<Option<&'a Options>> ) -> Result<RuntimeEffect, String>
pub fn make_for_blender<'a>( sksl: impl AsRef<str>, options: impl Into<Option<&'a Options>> ) -> Result<RuntimeEffect, String>
pub fn make_shader<'a>( &self, uniforms: impl Into<Data>, children: &[ChildPtr], local_matrix: impl Into<Option<&'a Matrix>> ) -> Option<Shader>
pub fn make_image<'a>( &self, context: &mut RecordingContext, uniforms: impl Into<Data>, children: impl Into<Option<&'a [ChildPtr]>>, local_matrix: impl Into<Option<&'a Matrix>>, result_info: ImageInfo, mipmapped: bool ) -> Option<Image>
pub fn make_color_filter<'a>( &self, inputs: impl Into<Data>, children: impl Into<Option<&'a [ChildPtr]>> ) -> Option<ColorFilter>
pub fn make_blender<'a>( &self, uniforms: impl Into<Data>, children: impl Into<Option<&'a [ChildPtr]>> ) -> Option<Blender>
pub fn source(&self) -> &str
pub fn input_size(&self) -> usize
👎Deprecated since 0.35.0: Use uniform_size() instead
pub fn uniform_size(&self) -> usize
pub fn inputs(&self) -> &[Uniform]
👎Deprecated since 0.35.0: Use uniforms() instead
pub fn uniforms(&self) -> &[Uniform]
pub fn children(&self) -> &[Child]
pub fn find_input(&self, name: impl AsRef<str>) -> Option<&Uniform>
👎Deprecated since 0.35.0: Use find_uniform()