WebGLRenderingContext: getSupportedExtensions() method

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

Note: This feature is available in Web Workers.

The WebGLRenderingContext.getSupportedExtensions() method returns a list of all the supported WebGL extensions.

Syntax

js
getSupportedExtensions()

Parameters

None.

Return value

An Array of strings with all the supported WebGL extensions.

Examples

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

const extensions = gl.getSupportedExtensions();
// Array [ 'ANGLE_instanced_arrays', 'EXT_blend_minmax', … ]

See also the WebGLRenderingContext.getExtension() method to get a specific extension object.

WebGL extensions

Extensions for the WebGL API are registered in the WebGL Extension Registry. They are also listed here.

Specifications

Specification
WebGL Specification
# 5.14.14

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
getSupportedExtensions

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

See also