From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/webglactiveinfo/index.html | 64 ++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 files/zh-cn/web/api/webglactiveinfo/index.html (limited to 'files/zh-cn/web/api/webglactiveinfo/index.html') diff --git a/files/zh-cn/web/api/webglactiveinfo/index.html b/files/zh-cn/web/api/webglactiveinfo/index.html new file mode 100644 index 0000000000..18a7b022da --- /dev/null +++ b/files/zh-cn/web/api/webglactiveinfo/index.html @@ -0,0 +1,64 @@ +--- +title: WebGLActiveInfo +slug: Web/API/WebGLActiveInfo +translation_of: Web/API/WebGLActiveInfo +--- +
{{APIRef("WebGL")}}
+ +

WebGLActiveInfoWebGL API 的一部分,并且代表了调用 {{domxref("WebGLRenderingContext.getActiveAttrib()")}} 和{{domxref("WebGLRenderingContext.getActiveUniform()")}} 这两个方法后传回的信息。

+ +

属性值

+ +
+
{{domxref("WebGLActiveInfo.name")}}
+
请求变量的只读名称。
+
{{domxref("WebGLActiveInfo.size")}}
+
请求变量的只读尺寸。
+
{{domxref("WebGLActiveInfo.type")}}
+
请求变量的只读类型。
+
+ +

示例

+ +

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")}}

+ +

另请参见

+ + -- cgit v1.2.3-54-g00ecf