Type Definition skia_safe::RuntimeEffect

source ·
pub type RuntimeEffect = RCHandle<SkRuntimeEffect>;

Implementations§

source§

impl RuntimeEffect

source

pub fn make_for_color_filer<'a>( sksl: impl AsRef<str>, options: impl Into<Option<&'a Options>> ) -> Result<RuntimeEffect, String>

source

pub fn make_for_shader<'a>( sksl: impl AsRef<str>, options: impl Into<Option<&'a Options>> ) -> Result<RuntimeEffect, String>

source

pub fn make_for_blender<'a>( sksl: impl AsRef<str>, options: impl Into<Option<&'a Options>> ) -> Result<RuntimeEffect, String>

source

pub fn make_shader<'a>( &self, uniforms: impl Into<Data>, children: &[ChildPtr], local_matrix: impl Into<Option<&'a Matrix>> ) -> Option<Shader>

source

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>

source

pub fn make_color_filter<'a>( &self, inputs: impl Into<Data>, children: impl Into<Option<&'a [ChildPtr]>> ) -> Option<ColorFilter>

source

pub fn make_blender<'a>( &self, uniforms: impl Into<Data>, children: impl Into<Option<&'a [ChildPtr]>> ) -> Option<Blender>

source

pub fn source(&self) -> &str

source

pub fn input_size(&self) -> usize

👎Deprecated since 0.35.0: Use uniform_size() instead
source

pub fn uniform_size(&self) -> usize

source

pub fn inputs(&self) -> &[Uniform]

👎Deprecated since 0.35.0: Use uniforms() instead
source

pub fn uniforms(&self) -> &[Uniform]

source

pub fn children(&self) -> &[Child]

source

pub fn find_input(&self, name: impl AsRef<str>) -> Option<&Uniform>

👎Deprecated since 0.35.0: Use find_uniform()
source

pub fn find_uniform(&self, name: impl AsRef<str>) -> Option<&Uniform>

source

pub fn find_child(&self, name: impl AsRef<str>) -> Option<&Child>

source

pub fn allow_shader(&self) -> bool

source

pub fn allow_color_filter(&self) -> bool

source

pub fn allow_blender(&self) -> bool

Trait Implementations§

source§

impl Debug for RuntimeEffect

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more