{{APIRef("WebGL")}}
The WebGLActiveInfo interface is part of the WebGL API and represents the information returned by calling the {{domxref("WebGLRenderingContext.getActiveAttrib()")}} and {{domxref("WebGLRenderingContext.getActiveUniform()")}} methods.
Properties
- {{domxref("WebGLActiveInfo.name")}}
- The read-only name of the requested variable.
- {{domxref("WebGLActiveInfo.size")}}
- The read-only size of the requested variable.
- {{domxref("WebGLActiveInfo.type")}}
- The read-only type of the requested variable.
Examples
A WebGLActiveInfo
object is returned by {{domxref("WebGLRenderingContext.getActiveAttrib()")}} or {{domxref("WebGLRenderingContext.getActiveUniform()")}}.
WebGLActiveInfo? getActiveAttrib(WebGLProgram? program, GLuint index); WebGLActiveInfo? getActiveUniform(WebGLProgram? program, GLuint index);
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('WebGL', "#5.11", "WebGLActiveInfo")}} | {{Spec2('WebGL')}} | Initial definition. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | {{CompatChrome("9")}} | {{CompatGeckoDesktop("2.0")}} | {{CompatIE("11")}} | {{CompatOpera("12")}} | {{CompatSafari("5.1")}} |
Available in workers | {{CompatNo}} | {{CompatGeckoDesktop(44)}} [1] | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | 25 | {{CompatVersionUnknown}} | {{CompatUnknown}} | 12 | 8.1 |
Available in workers | {{CompatNo}} | {{CompatNo}} | {{CompatGeckoMobile(44)}} [1] | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
[1] This feature is behind a feature preference setting. In about:config, set gfx.offscreencanvas.enabled to true.
See also
- {{domxref("WebGLRenderingContext.getActiveAttrib()")}}
- {{domxref("WebGLRenderingContext.getActiveUniform()")}}