Monday, 26 December 2016

WebGLSync

WebGLSync

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
The WebGLSync interface is part of the WebGL 2 API and is used to synchronize activities between the GPU and the application.
When working with WebGLSync objects, the following methods of the WebGL2RenderingContext are useful:

Examples

Creating a WebGLSync object

in this example, gl must be a WebGL2RenderingContextWebGLSync objects are not available in WebGL 1.
var sync = gl.fenceSync(gl.SYNC_GPU_COMMANDS_COMPLETE, 0);

Specifications

SpecificationStatusComment
WebGL 2.0
The definition of 'WebGLSync' in that specification.
Editor's DraftInitial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafariServo
Basic SupportNo support1No support51.0No supportNo supportNo supportNo support
1. To use an experimental implementation of WebGL 2 in Chrome, you have to start Chrome with the runtime flag --enable-unsafe-es3-apis.

See also




0 comments:

Post a Comment

Popular Posts

Powered by Blogger.

Translate