getActiveUniform method

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

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

Implementation

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