We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

这篇翻译不完整。请帮忙从英语翻译这篇文章

这是一个实验中的功能
此功能某些浏览器尚在开发中,请参考浏览器兼容性表格以得到在不同浏览器中适合使用的前缀。由于该功能对应的标准文档可能被重新修订,所以在未来版本的浏览器中该功能的语法和行为可能随之改变。

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:

示例

创建一个WebGLSync对象

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

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

Specifications

Specification Status Comment
WebGL 2.0
WebGLSync
Editor's Draft Initial definition.

浏览器兼容性

No compatibility data found. Please contribute data for "api.WebGLSync.WebGLSync" (depth: 1) to the MDN compatibility data repository.

相关链接

文档标签和贡献者

此页面的贡献者: loverinfo
最后编辑者: loverinfo,