此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
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 2021年9月.
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> |
浏览器兼容性
Loading...