WebGLRenderingContext.deleteBuffer()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
WebGL API的 WebGLRenderingContext.deleteBuffer()
用于删除给定的 WebGLBuffer
对象;若给定的 WebGLBuffer
对象已经被删除了,调用该方法将不会产生任何效果。
语法
void gl.deleteBuffer(buffer);
参数
- buffer
-
要删除的
WebGLBuffer
对象。
返回值
None.
例子
删除一个 buffer
js
var canvas = document.getElementById("canvas");
var gl = canvas.getContext("webgl");
var buffer = gl.createBuffer();
// ...
gl.deleteBuffer(buffer);
规范
Specification |
---|
WebGL Specification # 5.14.5 |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
deleteBuffer |
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.