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.