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 |
浏览器兼容性
BCD tables only load in the browser