EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

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

 

 

Mostra:
© 2014 Microsoft