Back to Content

WebGLActiveInfo

files/en-us/web/api/webglactiveinfo/index.md

latest1.0 KB
Original Source

{{APIRef("WebGL")}}{{AvailableInWorkers}}

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.

Instance 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()")}}
  • {{domxref("WebGLRenderingContext.getActiveUniform()")}} or
  • {{domxref("WebGL2RenderingContext.getTransformFeedbackVarying()")}}

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("WebGLRenderingContext.getActiveAttrib()")}}
  • {{domxref("WebGLRenderingContext.getActiveUniform()")}}