EXTDisjointTimerQuery

js.html.webgl.extension.EXTDisjointTimerQuery (extern class)

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.

See:

Static Members

QUERY_COUNTER_BITS_EXT: Int

A GLint indicating the number of bits used to hold the query result for the given target.


CURRENT_QUERY_EXT: Int

A WebGLQuery object, which is the currently active query for the given target.


QUERY_RESULT_EXT: Int

A GLuint64EXT containing the query result.


QUERY_RESULT_AVAILABLE_EXT: Int

A GLboolean indicating whether or not a query result is available.


TIME_ELAPSED_EXT: Int

Elapsed time (in nanoseconds).


TIMESTAMP_EXT: Int

The current time.


GPU_DISJOINT_EXT: Int

A GLboolean indicating whether or not the GPU performed any disjoint operation.

Instance Members

createQueryEXT(): js.html.webgl.Query

Creates a new WebGLQuery.

Returns
js.html.webgl.Query

deleteQueryEXT(query: js.html.webgl.Query): Void

Deletes a given WebGLQuery.

Name Type
query js.html.webgl.Query

isQueryEXT(query: js.html.webgl.Query): Bool

Returns 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): Void

The timer starts when all commands prior to beginQueryEXT have been fully executed.

Name Type
target Int
query js.html.webgl.Query

endQueryEXT(target: Int): Void

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): Void

Records the current time into the corresponding query object.

Name Type
query js.html.webgl.Query
target Int

getQueryEXT(target: Int, pname: Int): Dynamic

Returns information about a query target.

Name Type
target Int
pname Int
Returns
Dynamic

getQueryObjectEXT(query: js.html.webgl.Query, pname: Int): Dynamic

Return the state of a query object.

Name Type
query js.html.webgl.Query
pname Int
Returns
Dynamic