--- title: WebGLActiveInfo slug: Web/API/WebGLActiveInfo translation_of: Web/API/WebGLActiveInfo ---
WebGLActiveInfo是WebGL API 的一部分,并且代表了调用 {{domxref("WebGLRenderingContext.getActiveAttrib()")}} 和{{domxref("WebGLRenderingContext.getActiveUniform()")}} 这两个方法后传回的信息。
WebGLActiveInfo 对象可以通过以下方式返回:
WebGLActiveInfo? getActiveAttrib(WebGLProgram? program, GLuint index); WebGLActiveInfo? getActiveUniform(WebGLProgram? program, GLuint index); WebGLActiveInfo? getTransformFeedbackVarying(WebGLProgram? program, GLuint index)
| 规范 | 状态 | 备注 |
|---|---|---|
| {{SpecName('WebGL', "#5.11", "WebGLActiveInfo")}} | {{Spec2('WebGL')}} | Initial definition. |
{{Compat("api.WebGLActiveInfo.WebGLActiveInfo")}}