Type Alias freya_engine::prelude::RuntimeEffect
pub type RuntimeEffect = RCHandle<SkRuntimeEffect>;
Aliased Type§
struct RuntimeEffect(/* private fields */);
Implementations§
§impl RCHandle<SkRuntimeEffect>
impl RCHandle<SkRuntimeEffect>
pub fn make_for_color_filer<'a>( sksl: impl AsRef<str>, options: impl Into<Option<&'a Options>> ) -> Result<RCHandle<SkRuntimeEffect>, String>
pub fn make_for_shader<'a>( sksl: impl AsRef<str>, options: impl Into<Option<&'a Options>> ) -> Result<RCHandle<SkRuntimeEffect>, String>
pub fn make_for_blender<'a>( sksl: impl AsRef<str>, options: impl Into<Option<&'a Options>> ) -> Result<RCHandle<SkRuntimeEffect>, String>
pub fn make_shader<'a>( &self, uniforms: impl Into<RCHandle<SkData>>, children: &[ChildPtr], local_matrix: impl Into<Option<&'a Matrix>> ) -> Option<RCHandle<SkShader>>
pub fn make_color_filter<'a>( &self, inputs: impl Into<RCHandle<SkData>>, children: impl Into<Option<&'a [ChildPtr]>> ) -> Option<RCHandle<SkColorFilter>>
pub fn make_blender<'a>( &self, uniforms: impl Into<RCHandle<SkData>>, children: impl Into<Option<&'a [ChildPtr]>> ) -> Option<RCHandle<SkBlender>>
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) -> &[Handle<SkRuntimeEffect_Uniform>]
👎Deprecated since 0.35.0: Use uniforms() instead
pub fn uniforms(&self) -> &[Handle<SkRuntimeEffect_Uniform>]
pub fn children(&self) -> &[Handle<SkRuntimeEffect_Child>]
pub fn find_input( &self, name: impl AsRef<str> ) -> Option<&Handle<SkRuntimeEffect_Uniform>>
👎Deprecated since 0.35.0: Use find_uniform()
pub fn find_uniform( &self, name: impl AsRef<str> ) -> Option<&Handle<SkRuntimeEffect_Uniform>>
pub fn find_child( &self, name: impl AsRef<str> ) -> Option<&Handle<SkRuntimeEffect_Child>>
pub fn allow_shader(&self) -> bool
pub fn allow_color_filter(&self) -> bool
pub fn allow_blender(&self) -> bool
Trait Implementations§
§impl<H> ConditionallySend for RCHandle<H>where
H: NativeRefCountedBase,
impl<H> ConditionallySend for RCHandle<H>where H: NativeRefCountedBase,
RCHandle<H>
is conditionally Send and can be sent to
another thread when its reference count is 1.
§impl<N> Flattenable for RCHandle<N>where
N: NativeFlattenable + NativeRefCountedBase,
impl<N> Flattenable for RCHandle<N>where N: NativeFlattenable + NativeRefCountedBase,
§impl<N> From<&RCHandle<N>> for RCHandle<N>where
N: NativeRefCounted,
impl<N> From<&RCHandle<N>> for RCHandle<N>where N: NativeRefCounted,
A reference counted handle is cheap to clone, so we do support a conversion from a reference to a ref counter to an owned handle.