web api instance method
WebGLRenderingContext: createRenderbuffer() method
Available in workers
The WebGLRenderingContext.createRenderbuffer() method of
the WebGL API creates and initializes a
WebGLRenderbuffer object.
Syntax
createRenderbuffer()
Parameters
None.
Return value
A WebGLRenderbuffer object that stores data such an image, or can be
source or target of a rendering operation.
Examples
Creating a render buffer
const canvas = document.getElementById("canvas");
const gl = canvas.getContext("webgl");
const renderBuffer = gl.createRenderbuffer();
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.