WebGLRenderingContext: getSupportedExtensions() method - Web APIs | MDN (original) (raw)
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 WebGLextensions.
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 in our WebGL API reference.
Specifications
| Specification |
|---|
| WebGL Specification # 5.14.14 |