WebGLRenderingContext.finish()
The WebGLRenderingContext.finish()
method of the WebGL API blocks execution until all previously called commands are finished.
Syntax
void gl.finish();
Parameters
None.
Return value
None.
Specifications
Specification |
---|
WebGL Specification (WebGL) # 5.14.11 |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
finish |
9 |
12 |
4 |
11 |
12 |
5.1 |
≤37 |
25 |
Yes |
12 |
8 |
1.5 |
See also
WebGLRenderingContext.flush()
- WebGL best practices (which recommends avoiding
finish()
as it may slow down your main rendering loop)
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/finish