coderef

WEBGL_debug_renderer_info WebGL extensionBaseline · Widely available

The WEBGL_debug_renderer_info extension for WebGL 1.0 and 2.0 contexts exposes information about the graphics driver for debugging purposes.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Apr 19, 2017. Widely available since Oct 19, 2019.

Browser support

DesktopChrome
1–32Not supported
33+Supportedsince Feb 20, 2014
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1–52Not supported
53+Supportedsince Apr 19, 2017
Current: 157
Safari
1–9Not supported
9.1+Supportedsince Mar 21, 2016
Current: 27
MobileChrome Android
18–32Not supported
33+Supportedsince Feb 26, 2014
Current: 155
Firefox Android
4–52Not supported
53+Supportedsince Apr 19, 2017
Current: 157
Safari iOS
1–9Not supported
9.3+Supportedsince Mar 21, 2016
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: WEBGL debug renderer info.

Feature detection

JS · check before using
if ("WEBGL_debug_renderer_info" in globalThis) {
  // WEBGL_debug_renderer_info is available
} else {
  // load a polyfill or use a fallback
}