WebGLRenderingContext: createFramebuffer() method - Web APIs | MDN

Syntax

Parameters

None.

Return value

A WebGLFramebuffer object.

Examples

Creating a frame buffer

js

const canvas = document.getElementById("canvas");
const gl = canvas.getContext("webgl");
const framebuffer = gl.createFramebuffer();

Specifications

Specification
WebGL Specification
# 5.14.6

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.