WebGLQuery - Web APIs | MDN

Examples

Creating a WebGLQuery object

in this example, gl must be a WebGL2RenderingContext. WebGLQuery objects are not available in WebGL 1.

js

const query = gl.createQuery();

Specifications

Specification
WebGL 2.0 Specification
# 3.2

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.