WebGLRenderingContext: isFramebuffer() method - Web APIs | MDN
Syntax
js
isFramebuffer(framebuffer)
Parameters
framebuffer-
A
WebGLFramebufferto check.
Return value
A GLboolean indicating whether or not the frame buffer is valid.
Examples
Checking a frame buffer
js
const canvas = document.getElementById("canvas");
const gl = canvas.getContext("webgl");
const framebuffer = gl.createFramebuffer();
gl.isFramebuffer(framebuffer);
Specifications
| Specification |
|---|
| WebGL Specification # 5.14.6 |