getUniform: ((context: {
    drawingBufferWidth: number;
    drawingBufferHeight: number;
}, state: {
    stepNow?: number;
    bound?: number;
    merge?: {
        texture: object;
    };
    textures: {
        texture: object;
    }[][];
}) =>
    | number
    | number[]
    | texture
    | object)

A function hook to update a GL uniform value for a render pass.

See

Returns A GL uniform to be bound via a GL API.

Type declaration

    • (context, state):
          | number
          | number[]
          | texture
          | object
    • Parameters

      • context: {
            drawingBufferWidth: number;
            drawingBufferHeight: number;
        }

        General or global properties; with:

        • drawingBufferWidth: Current GL viewport width in pixels.
        • drawingBufferHeight: Current GL viewport height in pixels.
        • drawingBufferWidth: number
        • drawingBufferHeight: number
      • state: {
            stepNow?: number;
            bound?: number;
            merge?: {
                texture: object;
            };
            textures: {
                texture: object;
            }[][];
        }

        Local properties (the gpgpu state); with:

        • stepNow: The current step of the gpgpu state.
        • bound: Number of steps bound to output; can't be bound as inputs.
        • merge: Any object containing merged data-texture.
          • texture: Any merged data-texture.
        • textures: Textures per-step, as arrays of objects with a texture property. See toData.
        • OptionalstepNow?: number
        • Optionalbound?: number
        • Optionalmerge?: {
              texture: object;
          }
          • texture: object
        • textures: {
              texture: object;
          }[][]

      Returns
          | number
          | number[]
          | texture
          | object