import { type RuntimeEffect } from "https://deno.land/x/canvas@v1.4.2/src/types.ts";
See SkRuntimeEffect.h for more details.
Methods
makeShader(): Shader
Returns a shader executed using the given uniform data.
makeShaderWithChildren(): Shader
Returns a shader executed using the given uniform data and the children as inputs.
getUniform(index: number): SkSLUniform
Returns the nth uniform from the effect.
Returns the total number of floats across all uniforms on the effect. This is the length
of the uniforms array expected by makeShader. For example, an effect with a single float3
uniform, would return 1 from getUniformCount()
, but 3 from getUniformFloatCount()
.