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

getActiveAttrib method

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

IE11

 

Syntax

var activeinfo = WebGLRenderingContext.getActiveAttrib(program, index);

Parameters

program [in]

Type: WebGLProgram

The program object containing the vertex attribute of interest.

index [in]

Type: Number

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

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 attribute variables in program.
gl.INVALID_OPERATIONprogram is not a valid program object.

 

See also

WebGLRenderingContext
WebGLActiveInfo
getUniform
getUniformLocation

 

 

Show:
© 2015 Microsoft