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 GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
getSupportedExtensions |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.