getActiveAttrib method

WebGLActiveInfo? getActiveAttrib(
  1. WebGLProgram program,
  2. GLuint index
)

The WebGLRenderingContext.getActiveAttrib() method of the WebGL API returns a WebGLActiveInfo object containing size, type, and name of a vertex attribute. It is generally used when querying unknown attributes either for debugging or generic library creation.

Implementation

external WebGLActiveInfo? getActiveAttrib(
  WebGLProgram program,
  GLuint index,
);