EXTDisjointTimerQuery
The EXT_disjoint_timer_query extension is part of the WebGL API and provides a way to measure the duration of a set of GL commands, without stalling the rendering pipeline.
Documentation EXT_disjoint_timer_query by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Static Members
QUERY_COUNTER_BITS_EXT: IntA GLint indicating the number of bits used to hold the query result for the given target.
CURRENT_QUERY_EXT: IntA WebGLQuery object, which is the currently active query for the given target.
QUERY_RESULT_EXT: IntA GLuint64EXT containing the query result.
QUERY_RESULT_AVAILABLE_EXT: IntA GLboolean indicating whether or not a query result is available.
TIME_ELAPSED_EXT: IntElapsed time (in nanoseconds).
TIMESTAMP_EXT: IntThe current time.
GPU_DISJOINT_EXT: IntA GLboolean indicating whether or not the GPU performed any disjoint operation.
Instance Members
createQueryEXT(): js.html.webgl.QueryCreates a new WebGLQuery.
| Returns |
|---|
| js.html.webgl.Query |
deleteQueryEXT(query: js.html.webgl.Query): VoidDeletes a given WebGLQuery.
| Name | Type |
|---|---|
query |
js.html.webgl.Query |
isQueryEXT(query: js.html.webgl.Query): BoolReturns true if a given object is a WebGLQuery.
| Name | Type |
|---|---|
query |
js.html.webgl.Query |
| Returns |
|---|
| Bool |
beginQueryEXT(target: Int, query: js.html.webgl.Query): VoidThe timer starts when all commands prior to beginQueryEXT have been fully executed.
| Name | Type |
|---|---|
target |
Int |
query |
js.html.webgl.Query |
The timer stops when all commands prior to endQueryEXT have been fully executed.
| Name | Type |
|---|---|
target |
Int |
queryCounterEXT(query: js.html.webgl.Query, target: Int): VoidRecords the current time into the corresponding query object.
| Name | Type |
|---|---|
query |
js.html.webgl.Query |
target |
Int |
Returns information about a query target.
| Name | Type |
|---|---|
target |
Int |
pname |
Int |
| Returns |
|---|
| Dynamic |
getQueryObjectEXT(query: js.html.webgl.Query, pname: Int): DynamicReturn the state of a query object.
| Name | Type |
|---|---|
query |
js.html.webgl.Query |
pname |
Int |
| Returns |
|---|
| Dynamic |