WebGLRenderingContext.deleteFramebuffer()
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.deleteFramebuffer()
方法用来删除给定的WebGLFramebuffer
对象。如果帧缓冲区已被删除,则此方法无效。
语法
void gl.deleteFramebuffer(framebuffer);
参数
- framebuffer
-
将要删除的
WebGLFramebuffer
对象。
返回值
None.
示例
删除一个帧缓冲区
js
var canvas = document.getElementById("canvas");
var gl = canvas.getContext("webgl");
var framebuffer = gl.createFramebuffer();
// ...
gl.deleteFramebuffer(framebuffer);
规范
Specification |
---|
WebGL Specification # 5.14.6 |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
deleteFramebuffer |
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.