Note: This feature is available in Web Workers.
The WebGLRenderingContext.isFramebuffer() method of the WebGL API returns true if the passed WebGLFramebuffer is valid and false otherwise.
isFramebuffer(framebuffer)framebufferA WebGLFramebuffer to check.
A GLboolean indicating whether or not the frame buffer is valid.
const canvas = document.getElementById("canvas");
const gl = canvas.getContext("webgl");
const framebuffer = gl.createFramebuffer();
gl.isFramebuffer(framebuffer);