A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isSync below:

WebGL2RenderingContext: isSync() method - Web APIs

WebGL2RenderingContext: isSync() method

Baseline Widely available

Note: This feature is available in Web Workers.

The WebGL2RenderingContext.isSync() method of the WebGL 2 API returns true if the passed object is a valid WebGLSync object.

Syntax Parameters
sync

A WebGLSync object to test.

Return value

A GLboolean indicating whether the given object is a valid WebGLSync object (true) or not (false).

Examples

gl must be a WebGL2RenderingContext. WebGLSync objects are not available in WebGL 1.

const sync = gl.fenceSync(gl.SYNC_GPU_COMMANDS_COMPLETE, 0);

// …

gl.isSync(sync);
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3