Struct webgl_rs::query::WebGLRSQuery
source · pub struct WebGLRSQuery<'ctx> { /* private fields */ }
Implementations§
source§impl<'ctx> WebGLRSQuery<'ctx>
impl<'ctx> WebGLRSQuery<'ctx>
sourcepub fn begin(&self, target: QueryTarget)
pub fn begin(&self, target: QueryTarget)
Starts an asynchronous query. The target parameter indicates which kind of query to begin.
Arguments
target
- specifying the target of the query
sourcepub fn result_available(&self) -> bool
pub fn result_available(&self) -> bool
Indicates whether the WebGLRSQuery
has a result available.
Trait Implementations§
source§impl<'ctx> Clone for WebGLRSQuery<'ctx>
impl<'ctx> Clone for WebGLRSQuery<'ctx>
source§fn clone(&self) -> WebGLRSQuery<'ctx>
fn clone(&self) -> WebGLRSQuery<'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