EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

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

 

 

표시:
© 2014 Microsoft