diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/webglactiveinfo/index.html | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/webglactiveinfo/index.html')
-rw-r--r-- | files/zh-cn/web/api/webglactiveinfo/index.html | 64 |
1 files changed, 64 insertions, 0 deletions
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 +--- +<div>{{APIRef("WebGL")}}</div> + +<p><strong>WebGLActiveInfo</strong>是<a href="/en-US/docs/Web/API/WebGL_API">WebGL API</a> 的一部分,并且代表了调用 {{domxref("WebGLRenderingContext.getActiveAttrib()")}} 和{{domxref("WebGLRenderingContext.getActiveUniform()")}} 这两个方法后传回的信息。</p> + +<h2 id="属性值">属性值</h2> + +<dl> + <dt>{{domxref("WebGLActiveInfo.name")}}</dt> + <dd>请求变量的只读名称。</dd> + <dt>{{domxref("WebGLActiveInfo.size")}}</dt> + <dd>请求变量的只读尺寸。</dd> + <dt>{{domxref("WebGLActiveInfo.type")}}</dt> + <dd>请求变量的只读类型。</dd> +</dl> + +<h2 id="示例">示例</h2> + +<p><code>WebGLActiveInfo</code> 对象可以通过以下方式返回:</p> + +<ul> + <li>{{domxref("WebGLRenderingContext.getActiveAttrib()")}}</li> + <li>{{domxref("WebGLRenderingContext.getActiveUniform()")}} </li> + <li>{{domxref("WebGL2RenderingContext.getTransformFeedbackVarying()")}}</li> +</ul> + +<pre class="brush: js">WebGLActiveInfo? getActiveAttrib(WebGLProgram? program, GLuint index); +WebGLActiveInfo? getActiveUniform(WebGLProgram? program, GLuint index); +WebGLActiveInfo? getTransformFeedbackVarying(WebGLProgram? program, GLuint index) +</pre> + +<h2 id="规范">规范</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">规范</th> + <th scope="col">状态</th> + <th scope="col">备注</th> + </tr> + <tr> + <td>{{SpecName('WebGL', "#5.11", "WebGLActiveInfo")}}</td> + <td>{{Spec2('WebGL')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p> + +<p>{{Compat("api.WebGLActiveInfo.WebGLActiveInfo")}}</p> + +<h2 id="另请参见">另请参见</h2> + +<ul> + <li>{{domxref("WebGLRenderingContext.getActiveAttrib()")}}</li> + <li>{{domxref("WebGLRenderingContext.getActiveUniform()")}}</li> +</ul> |