OES_element_index_uint 扩展
OES_element_index_uint 扩展是 WebGL API 的一部分,它为 WebGLRenderingContext.drawElements() 添加了对 gl.UNSIGNED_INT 类型的支持。
可以使用 WebGLRenderingContext.getExtension() 方法来访问 WebGL 扩展。有关更多信息,请参阅 WebGL 教程中的 使用扩展。
扩展的方法
此扩展扩展了 WebGLRenderingContext.drawElements()
- 现在
type参数接受gl.UNSIGNED_INT。
示例
js
const ext = gl.getExtension("OES_element_index_uint");
gl.drawElements(gl.POINTS, 8, gl.UNSIGNED_INT, 0);
规范
| 规范 |
|---|
| WebGL OES_element_index_uint Khronos 批准的扩展规范 |
浏览器兼容性
加载中…