Struct webgl_stdweb::EXT_disjoint_timer_query [] [src]

pub struct EXT_disjoint_timer_query(_);

Extension

Specifies that queries' results only become available at certain well-defined times. This extension provides a query mechanism that can be used to determine the amount of time it takes to fully complete a set of GL commands, and without stalling the rendering pipeline. It uses the query object mechanisms first introduced in the occlusion query extension, which allow time intervals to be polled asynchronously by the application. This version of the disjoint_timer_query extension is exposed only on on WebGL 1.0 contexts. See the _webgl2 version of the extension for how it is exposed on WebGL 2.0 contexts.

Methods

impl EXT_disjoint_timer_query
[src]

CURRENT_QUERY_EXT: GLenum = 34917

GPU_DISJOINT_EXT: GLenum = 36795

QUERY_COUNTER_BITS_EXT: GLenum = 34916

QUERY_RESULT_AVAILABLE_EXT: GLenum = 34919

QUERY_RESULT_EXT: GLenum = 34918

TIMESTAMP_EXT: GLenum = 36392

TIME_ELAPSED_EXT: GLenum = 35007

[src]

target accepts TIME_ELAPSED_EXT.

[src]

[src]

[src]

target accepts TIME_ELAPSED_EXT.

[src]

target and pname accept the following combinations of parameters. The return type of this method depends on the parameter queried. targetpnamereturned type TIME_ELAPSED_EXTCURRENT_QUERYWebGLQuery? TIMESTAMP_EXTCURRENT_QUERYnull TIME_ELAPSED_EXTQUERY_COUNTER_BITS_EXTGLint TIMESTAMP_EXTQUERY_COUNTER_BITS_EXTGLint

[src]

pname accepts QUERY_RESULT_EXT or QUERY_RESULT_AVAILABLE_EXT. The return type of this method depends on the parameter queried: pnamereturned type QUERY_RESULT_EXTGLuint64EXT QUERY_RESULT_AVAILABLE_EXTboolean In order to ensure consistent behavior across platforms, queries' results must only be made available when the user agent's event loop is not executing a task. In other words:

  • A query's result must not be made available until control has returned to the user agent's main loop.
  • Repeatedly fetching a query's QUERY_RESULT_AVAILABLE_EXT parameter in a loop, without returning control to the user agent, must always return the same value.

A query's result may or may not be made available when control returns to the user agent's event loop. It is not guaranteed that using a single setTimeout callback with a delay of 0, or a single requestAnimationFrame callback, will allow sufficient time for the WebGL implementation to supply the query's results.

This change compared to the original extension specification is enforced in order to prevent applications from relying on being able to issue a query and fetch its result in the same frame. In order to ensure best portability among devices and best performance among implementations, applications must expect that queries' results will become available asynchronously.

[src]

Returns true if the passed WebGLTimerQueryEXT is valid and false otherwise. Returns false if the query's invalidated flag is set.

[src]

target accepts TIMESTAMP_EXT.

Trait Implementations

impl Debug for EXT_disjoint_timer_query
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for EXT_disjoint_timer_query
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl AsRef<Reference> for EXT_disjoint_timer_query
[src]

[src]

Performs the conversion.

impl ReferenceType for EXT_disjoint_timer_query
[src]

[src]

Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more

impl From<EXT_disjoint_timer_query> for Reference
[src]

[src]

Performs the conversion.

impl TryFrom<EXT_disjoint_timer_query> for Reference
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl TryFrom<Reference> for EXT_disjoint_timer_query
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl<'_r> TryFrom<&'_r Reference> for EXT_disjoint_timer_query
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl TryFrom<Value> for EXT_disjoint_timer_query
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl<'_r> TryFrom<&'_r Value> for EXT_disjoint_timer_query
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl JsSerialize for EXT_disjoint_timer_query
[src]

impl JsSerializeOwned for EXT_disjoint_timer_query
[src]

[src]

[src]

impl<'_r> JsSerializeOwned for &'_r EXT_disjoint_timer_query
[src]

[src]

[src]

impl InstanceOf for EXT_disjoint_timer_query
[src]

[src]

Checks whenever a given Reference if of type Self.

impl Extension for EXT_disjoint_timer_query
[src]

NAME: &'static str = "EXT_disjoint_timer_query"

Auto Trait Implementations