skia_safe

Type Alias RuntimeEffect

Source
pub type RuntimeEffect = RCHandle<SkRuntimeEffect>;

Aliased Type§

struct RuntimeEffect(/* private fields */);

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_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