Struct webgl_rs::sync::WebGLRSSync
source · pub struct WebGLRSSync<'ctx> { /* private fields */ }
Implementations§
source§impl<'ctx> WebGLRSSync<'ctx>
impl<'ctx> WebGLRSSync<'ctx>
sourcepub fn client_wait(&self, flags: u32, timeout: i64) -> WaitStatus
pub fn client_wait(&self, flags: u32, timeout: i64) -> WaitStatus
Blocks and waits for this WebGLRSSync
object to become signaled or a given timeout to be passed.
Arguments
flags
- specifying a bitwise combination of flags controlling the flushing behavior. May be gl.SYNC_FLUSH_COMMANDS_BIT.timeout
- specifying a timeout (in nanoseconds) for which to wait for the sync object to become signaled. Must not be larger than gl.MAX_CLIENT_WAIT_TIMEOUT_WEBGL.
sourcepub fn wait(&self, flags: u32, timeout: i64)
pub fn wait(&self, flags: u32, timeout: i64)
Returns immediately, but waits on the GL server until the WebGLRSSync
object is signaled.
The method is a no-op in the absence of the possibility of synchronizing between multiple GL contexts.
Arguments
flags
- specifying a bitwise combination of flags controlling the flushing behavior. May be gl.SYNC_FLUSH_COMMANDS_BIT.timeout
- specifying a timeout (in nanoseconds) for which to wait for the sync object to become signaled. Must not be larger than gl.MAX_CLIENT_WAIT_TIMEOUT_WEBGL.
sourcepub fn status(&self) -> SyncStatus
pub fn status(&self) -> SyncStatus
Returns the status of this WebGLRSSync
object.
Trait Implementations§
source§impl<'ctx> Clone for WebGLRSSync<'ctx>
impl<'ctx> Clone for WebGLRSSync<'ctx>
source§fn clone(&self) -> WebGLRSSync<'ctx>
fn clone(&self) -> WebGLRSSync<'ctx>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more