WebGL2RenderingContext.bindBufferBase()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2021.
WebGL 2 API 的 WebGL2RenderingContext.bindBufferBase()
方法将一个 WebGLBuffer
绑定到某个点 (target
) 的特定的 index
上。
语法
void gl.bindBufferBase(target, index, buffer);
参数
返回值
无。
示例
js
gl.bindBufferBase(gl.TRANSFORM_FEEDBACK_BUFFER, 0, buffer);
规范
Specification |
---|
WebGL 2.0 Specification # 3.7.16 |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
bindBufferBase |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.