Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

getActiveUniform method

Returns an WebGLActiveInfo object containing the size, type, and name of a uniform attribute at a specific index position in a program object.

IE11

 

Syntax

var retVal = WebGLRenderingContext.getActiveUniform(program, index);

Parameters

program [in]

Type: WebGLProgram

The program object containing the uniform attribute of interest.

index [in]

Type: Number

The index of the uniform. The index is zero based. Passing 0 selects the first uniform, while ACTIVE_ATTRIBUTES - 1 specifies the last uniform.

Return value

Type: WebGLActiveInfo

A WebGLActiveInfo object.

Remarks

WebGL errorDescription
gl.INVALID_VALUE
  • The value of program is not generated by WebGL.
  • The value of index is greater than or equal to the number of active uniforms in program.
gl.INVALID_OPERATIONThe program is not a valid program object.

 

See also

WebGLRenderingContext

 

 

Show:
© 2015 Microsoft