The WebGLActiveInfo interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.

Properties

WebGLActiveInfo.name
The read-only name of the requested variable.
WebGLActiveInfo.size
The read-only size of the requested variable.
WebGLActiveInfo.type
The read-only type of the requested variable.

Examples

A WebGLActiveInfo object is returned by:

WebGLActiveInfo? getActiveAttrib(WebGLProgram? program, GLuint index); 
WebGLActiveInfo? getActiveUniform(WebGLProgram? program, GLuint index);
WebGLActiveInfo? getTransformFeedbackVarying(WebGLProgram? program, GLuint index)

Specifications

Specification Status Comment
WebGL 1.0
The definition of 'WebGLActiveInfo' in that specification.
Recommendation Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support912411125.1
Available in workers No No441 No No No
name912411125.1
size912411125.1
type912411125.1
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidIE mobileOpera AndroidiOS Safari
Basic support Yes25 Yes Yes11128.1
Available in workers No No No No No No No
name Yes25 Yes Yes11128.1
size Yes25 Yes Yes11128.1
type Yes25 Yes Yes11128.1

1. From version 44: this feature is behind the gfx.offscreencanvas.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

See also

Document Tags and Contributors

Tags: 
 Contributors to this page: fscholz, teoli, snnopy
 Last updated by: fscholz,