getAttribLocation method

GLint getAttribLocation(
  1. WebGLProgram program,
  2. String name
)

The WebGLRenderingContext.getAttribLocation() method of the WebGL API returns the location of an attribute variable in a given WebGLProgram.

Implementation

external GLint getAttribLocation(
  WebGLProgram program,
  String name,
);