Word description Defines a new uniform-tuple class. Tuples of the new class can be used as the uniforms slot of a render-set in order to set the uniform parameters of the active shader program. The uniform-type of each slot defines the component type, and the dimension specifies an array length if not f.
Uniform parameters are passed from Factor to the shader program through the uniform tuple as follows:
Matrix uniforms take their values either from row-major Factor sequences of sequences of floats, or from aliens or float-arrays referencing packed column-major arrays of floats. Matrix types are:
Uniform slots can also be defined as other uniform-tuple types to bind uniform structures. The uniform structure will take its value from the slots of a tuple of the given type.
•
Array uniforms are passed either as Factor sequences of the corresponding type specified above, or as aliens or specialized-arrays that reference pre-packed binary arrays of ints or floats.
A value of a uniform tuple type is a standard Factor tuple. Uniform tuples are constructed with new or boa, and values are placed inside them using standard slot accessors.