Firefox Tomorrow

web api instance method

WebGLRenderingContext: isRenderbuffer() method

View on MDN ↗

Available in workers

The WebGLRenderingContext.isRenderbuffer() method of the WebGL API returns true if the passed WebGLRenderbuffer is valid and false otherwise.

Syntax

isRenderbuffer(renderbuffer)

Parameters

Return value

A GLboolean indicating whether or not the renderbuffer is valid.

Examples

Checking a renderbuffer

const canvas = document.getElementById("canvas");
const gl = canvas.getContext("webgl");
const renderbuffer = gl.createRenderbuffer();

gl.isRenderbuffer(renderbuffer);

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also