OES_element_index_uint

OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements() .

WebGL extensions are available using the WebGLRenderingContext.getExtension() method. For more information, see also Using Extensions WebGL tutorial .

Availability: This extension is only available to WebGL1 contexts. In WebGL2 , the functionality of this extension is available on the WebGL2 context by default.

Extended methods

This extension extends WebGLRenderingContext.drawElements() :

  • type parameter now accepts gl.UNSIGNED_INT .

范例

var ext = gl.getExtension('OES_element_index_uint');
gl.drawElements(gl.POINTS, 8, gl.UNSIGNED_INT, 0);
					

规范

规范 状态 Comment
OES_element_index_uint
The definition of 'OES_element_index_uint' in that specification.
Recommendation 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
OES_element_index_uint Chrome Yes Edge ≤18 Firefox 24 IE ? Opera Yes Safari ? WebView Android Yes Chrome Android Yes Firefox Android ? Opera Android Yes Safari iOS ? Samsung Internet Android Yes

图例

完整支持
完整支持
兼容性未知
兼容性未知

另请参阅