Skip to main content

runtime_shader_with_options

Function runtime_shader_with_options 

pub fn runtime_shader_with_options(
    builder: &Handle<SkRuntimeEffectBuilder>,
    sample_radius: f32,
    child_shader_name: impl AsRef<str>,
    input: impl Into<Option<RCHandle<SkImageFilter>>>,
    restrict_output_to_input_bounds: bool,
) -> Option<RCHandle<SkImageFilter>>
Expand description

Creates a runtime-shader image filter with a child-shader sampling radius and optionally restricts its output to its input bounds.

sample_radius is the maximum absolute offset in either axis between coordinates passed to the runtime shader and coordinates used to sample its child shader.