weasel API - v0.8.0
    Preparing search index...

    Interface ShaderDrawCommandExperimental

    Custom shader draw command. The renderer generates a quad over bounds and dispatches the consumer's fragment shader with the kit's vertex prelude.

    uniforms keys must match names declared in the consumer's fragment shader. The kit automatically sets u_bounds, u_view, and u_proj — do not declare those in uniforms.

    API may change before v2.

    interface ShaderDrawCommand {
        bounds: { h: number; w: number; x: number; y: number };
        kind: "shader";
        program: ShaderProgramHandle;
        uniforms: Record<string, ShaderUniform>;
    }
    Index

    Properties

    bounds: { h: number; w: number; x: number; y: number }

    Screen-space bounding rect in CSS pixels.

    kind: "shader"
    uniforms: Record<string, ShaderUniform>