EXT_disjoint_timer_query 扩展属于 WebGL API and provides a way to measure the duration of a set of GL commands, without stalling the rendering pipeline.
WebGL extensions are available using the
WebGLRenderingContext.getExtension()
method. For more information, see also
使用扩展
在
WebGL 教程
.
可用性:
This extension should be available in
WebGL1
contexts only.
EXT_disjoint_timer_query_webgl2
is available in
WebGL 2
上下文。
In WebGL 2, the
getQueryObject
被重命名为
getQueryParameter
.
In WebGL 2, other queries (such as occlusion queries and primitive queries) are possible using
WebGLQuery
对象。
This extension exposes a new type:
Unsigned 64-bit integer number.
This extension exposes seven new constants.
ext.QUERY_COUNTER_BITS_EXT
GLint
indicating the number of bits used to hold the query result for the given target.
ext.CURRENT_QUERY_EXT
WebGLQuery
object, which is the currently active query for the given target.
ext.QUERY_RESULT_EXT
GLuint64EXT
containing the query result.
ext.QUERY_RESULT_AVAILABLE_EXT
GLboolean
indicating whether or not a query result is available.
ext.TIME_ELAPSED_EXT
Elapsed time (in nanoseconds).
ext.TIMESTAMP_EXT
The current time.
ext.GPU_DISJOINT_EXT
GLboolean
indicating whether or not the GPU performed any disjoint operation.
This extension exposes eight new methods.
ext.createQueryEXT()
创建新的
WebGLQuery
.
ext.deleteQueryEXT()
Deletes a given
WebGLQuery
.
ext.isQueryEXT()
返回
true
if a given object is a
WebGLQuery
.
ext.beginQueryEXT()
beginQueryEXT
have been fully executed.
ext.endQueryEXT()
endQueryEXT
have been fully executed.
ext.queryCounterEXT()
Records the current time into the corresponding query object.
ext.getQueryEXT()
Returns information about a query target.
ext.getQueryObjectEXT()
Return the state of a query object.
var ext = gl.getExtension('EXT_disjoint_timer_query');
| 规范 | 状态 | 注释 |
|---|---|---|
|
EXT_disjoint_timer_query
The definition of 'EXT_disjoint_timer_query' in that specification. |
工作草案 | 初始定义。 |
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
更新 GitHub 上的兼容性数据| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
EXT_disjoint_timer_query
|
Chrome
47 — 65
|
Edge
No
|
Firefox
51 — 63
|
IE ? | Opera ? | Safari ? |
WebView Android
47 — 65
|
Chrome Android
47 — 65
|
Firefox Android No | Opera Android ? | Safari iOS ? |
Samsung Internet Android
5.0 — 9.0
|
beginQueryEXT
|
Chrome
47 — 65
|
Edge
No
|
Firefox
51 — 63
|
IE ? | Opera ? | Safari ? |
WebView Android
47 — 65
|
Chrome Android
47 — 65
|
Firefox Android No | Opera Android ? | Safari iOS ? |
Samsung Internet Android
5.0 — 9.0
|
createQueryEXT
|
Chrome
47 — 65
|
Edge
No
|
Firefox
51 — 63
|
IE ? | Opera ? | Safari ? |
WebView Android
47 — 65
|
Chrome Android
47 — 65
|
Firefox Android No | Opera Android ? | Safari iOS ? |
Samsung Internet Android
5.0 — 9.0
|
deleteQueryEXT
|
Chrome
47 — 65
|
Edge
No
|
Firefox
51 — 63
|
IE ? | Opera ? | Safari ? |
WebView Android
47 — 65
|
Chrome Android
47 — 65
|
Firefox Android No | Opera Android ? | Safari iOS ? |
Samsung Internet Android
5.0 — 9.0
|
endQueryEXT
|
Chrome
47 — 65
|
Edge
No
|
Firefox
51 — 63
|
IE ? | Opera ? | Safari ? |
WebView Android
47 — 65
|
Chrome Android
47 — 65
|
Firefox Android No | Opera Android ? | Safari iOS ? |
Samsung Internet Android
5.0 — 9.0
|
getQueryEXT
|
Chrome
47 — 65
|
Edge
No
|
Firefox
51 — 63
|
IE ? | Opera ? | Safari ? |
WebView Android
47 — 65
|
Chrome Android
47 — 65
|
Firefox Android No | Opera Android ? | Safari iOS ? |
Samsung Internet Android
5.0 — 9.0
|
getQueryObjectEXT
|
Chrome
47 — 65
|
Edge
No
|
Firefox
51 — 63
|
IE ? | Opera ? | Safari ? |
WebView Android
47 — 65
|
Chrome Android
47 — 65
|
Firefox Android No | Opera Android ? | Safari iOS ? |
Samsung Internet Android
5.0 — 9.0
|
isQueryEXT
|
Chrome
47 — 65
|
Edge
No
|
Firefox
51 — 63
|
IE ? | Opera ? | Safari ? |
WebView Android
47 — 65
|
Chrome Android
47 — 65
|
Firefox Android No | Opera Android ? | Safari iOS ? |
Samsung Internet Android
5.0 — 9.0
|
queryCounterEXT
|
Chrome
47 — 65
|
Edge
No
|
Firefox
51 — 63
|
IE ? | Opera ? | Safari ? |
WebView Android
47 — 65
|
Chrome Android
47 — 65
|
Firefox Android No | Opera Android ? | Safari iOS ? |
Samsung Internet Android
5.0 — 9.0
|
不支持
兼容性未知
见实现注意事项。
EXT_disjoint_timer_query
ANGLE_instanced_arrays
EXT_blend_minmax
EXT_color_buffer_half_float
EXT_frag_depth
EXT_sRGB
EXT_shader_texture_lod
EXT_texture_filter_anisotropic
OES_element_index_uint
OES_standard_derivatives
OES_texture_float
OES_texture_float_linear
OES_texture_half_float
OES_texture_half_float_linear
OES_vertex_array_object
WEBGL_color_buffer_float
WEBGL_compressed_texture_atc
WEBGL_compressed_texture_etc1
WEBGL_compressed_texture_pvrtc
WEBGL_compressed_texture_s3tc
WEBGL_compressed_texture_s3tc_srgb
WEBGL_debug_renderer_info
WEBGL_debug_shaders
WEBGL_depth_texture
WEBGL_draw_buffers
WEBGL_lose_context
WebGL2RenderingContext
WebGLActiveInfo
WebGLBuffer
WebGLContextEvent
WebGLFramebuffer
WebGLObject
WebGLProgram
WebGLQuery
WebGLRenderbuffer
WebGLRenderingContext
WebGLSampler
WebGLShader
WebGLShaderPrecisionFormat
WebGLSync
WebGLTexture
WebGLTransformFeedback
WebGLUniformLocation
WebGLVertexArrayObject