command: ((options: {
    vert?: ((context: any, state: any) => string);
    frag?: ((context: any, state: any) => string);
    count?: number;
    attributes?: {
        [k: string]: buffer;
    };
    uniforms?: {
        [k: string]: getUniform;
    };
    depth?: {
        [k: string]: boolean | {};
    };
    framebuffer?: ((context: any, state: any) => framebuffer);
}) => ((context: any, state: any) => void))

A function to create a GL render pass execution function, to be called later, given options, for a render pass; via a GL api.

See

Returns

A function to execute a GL render pass, given options.

Type declaration

    • (options): ((context: any, state: any) => void)
    • Parameters

      • options: {
            vert?: ((context: any, state: any) => string);
            frag?: ((context: any, state: any) => string);
            count?: number;
            attributes?: {
                [k: string]: buffer;
            };
            uniforms?: {
                [k: string]: getUniform;
            };
            depth?: {
                [k: string]: boolean | {};
            };
            framebuffer?: ((context: any, state: any) => framebuffer);
        }

        Options to create a GL render pass function; with:

        • vert: Hook to get any GLSL vertex shader string.
        • frag: Hook to get any GLSL fragment shader string.
        • count: Any number of elements to render.
        • attributes: Map of any GL attribute buffers. See attributes, buffer, toStep.
        • uniforms: Map of any GL uniform hooks. See uniforms, toUniforms, and getUniform.
        • depth: Any GL depth settings (e.g: options.depth.enable).
        • framebuffer: Hook to get any framebuffer to render into. See framebuffer.
        • Optionalvert?: ((context: any, state: any) => string)
            • (context, state): string
            • Parameters

              • context: any
              • state: any

              Returns string

        • Optionalfrag?: ((context: any, state: any) => string)
            • (context, state): string
            • Parameters

              • context: any
              • state: any

              Returns string

        • Optionalcount?: number
        • Optionalattributes?: {
              [k: string]: buffer;
          }
        • Optionaluniforms?: {
              [k: string]: getUniform;
          }
          • [k: string]: getUniform
        • Optionaldepth?: {
              [k: string]: boolean | {};
          }
          • [k: string]: boolean | {}
        • Optionalframebuffer?: ((context: any, state: any) => framebuffer)

      Returns ((context: any, state: any) => void)

        • (context, state): void
        • Parameters

          • context: any
          • state: any

          Returns void