A class storing description of an individual uniform, stored inside a uniform buffer.

Constructors

Accessors

Constructors

  • Create a new UniformFormat instance.

    Parameters

    • name: string

      The name of the uniform.

    • type: number

      The type of the uniform. One of the UNIFORMTYPE_*** constants.

    • count: number = 0

      The number of elements in the array. Defaults to 0, which represents a single element (not an array).

    Returns UniformFormat

Accessors