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