skia
    Preparing search index...

    Interface RuntimeEffect

    See SkRuntimeEffect.h for more details.

    interface RuntimeEffect {
        _type: "RuntimeEffect";
        delete(): void;
        deleteLater(): void;
        getUniform(index: number): SkSLUniform;
        getUniformCount(): number;
        getUniformFloatCount(): number;
        getUniformName(index: number): string;
        isAliasOf(other: any): boolean;
        isDeleted(): boolean;
        makeBlender(
            uniforms: number[] | Float32Array<ArrayBufferLike> | MallocObj,
        ): Blender;
        makeShader(
            uniforms: number[] | Float32Array<ArrayBufferLike> | MallocObj,
            localMatrix?: InputMatrix,
        ): Shader;
        makeShaderWithChildren(
            uniforms: number[] | Float32Array<ArrayBufferLike> | MallocObj,
            children?: Shader[],
            localMatrix?: InputMatrix,
        ): Shader;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _type: "RuntimeEffect"

    Methods

    • Returns the number of uniforms on the effect.

      Returns number

    • 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().

      Returns number

    • Returns the name of the nth effect uniform.

      Parameters

      • index: number

      Returns string

    • Returns a shader executed using the given uniform data.

      Parameters

      • uniforms: number[] | Float32Array<ArrayBufferLike> | MallocObj

      Returns Blender

    • Returns a shader executed using the given uniform data and the children as inputs.

      Parameters

      Returns Shader