glUniformsDMP Function

Syntax

GL_APICALL void GL_APIENTRY glUniformsDMP(
     GLuint n,
     GLint * locations,
     GLsizei * counts,
     const GLuint * value
);

Parameters

Name Description
in n Number of uniforms to set.
in locations Pointer to an array of n elements holding the uniform locations.
in counts Pointer to an array of n elements holding the uniform elements.
in value Pointer to an array holding the uniforms to set.

Return Values

No values are returned.

Description

Sets multiple uniform values.

Sets multiple uniform values at once for the current program.

Set n to the number of uniforms to set, and set locations to a pointer to an array holding n uniform locations. Set counts to a pointer to an array of n elements holding the uniform elements. This is equivalent to the count argument to the glUniform{1234}fv function. For array-type uniforms, specify the number of array elements to set. For non-array uniforms, specify 1.

For value, specify an array of values to set in the uniform. Each uniform may have a different number of data items, so the data stored at any given index in value might not match that for locations and counts. The uniforms for the values to set may be mixed float and int types. When specifying float type uniforms, float type data is stored in value as 32-bit data.

This function performs no error checking. Behavior is undefined when any of the arguments contains an invalid value.

Revision History

2010/04/02
Initial version.

CONFIDENTIAL