web api instance method
WebGLRenderingContext: isFramebuffer() method
Available in workers
The WebGLRenderingContext.isFramebuffer() method of the
WebGL API returns true if the
passed WebGLFramebuffer is valid and false otherwise.
Syntax
isFramebuffer(framebuffer)
Parameters
framebuffer- : A
WebGLFramebufferto check.
- : A
Return value
A GLboolean indicating whether or not the frame buffer is valid.
Examples
Checking a frame buffer
const canvas = document.getElementById("canvas");
const gl = canvas.getContext("webgl");
const framebuffer = gl.createFramebuffer();
gl.isFramebuffer(framebuffer);
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.