EXT_disjoint_timer_query.getQueryEXT() 方法在 WebGL API returns information about a query target.

句法

any ext.getQueryEXT(target, pname);
					

参数

target
A GLenum specifying the target of the time query. Must be ext.TIMESTAMP_EXT or ext.TIME_ELAPSED_EXT .
pname
A GLenum specifying which information to return. Must be ext.CURRENT_QUERY_EXT or ext.QUERY_COUNTER_BITS_EXT .

返回值

Depends on pname :

  • pname is ext.CURRENT_QUERY_EXT : A WebGLQuery object, which is the currently active query for the given target.
  • pname is ext.QUERY_COUNTER_BITS_EXT : A GLint indicating the number of bits used to hold the query result for the given target.

范例

var ext = gl.getExtension('EXT_disjoint_timer_query');
var startQuery = ext.createQueryEXT();
ext.queryCounterEXT(startQuery, ext.TIMESTAMP_EXT);
var currentQuery = ext.getQueryEXT(ext.TIMESTAMP_EXT,
                                   ext.CURRENT_QUERY_EXT);
					

规范

规范 状态 注释
EXT_disjoint_timer_query
The definition of 'EXT_disjoint_timer_query' in that specification.
工作草案 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
getQueryEXT Chrome 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Edge No
不支持 No
Removed due to the GLitch exploit .
Firefox 51 — 63
不支持 51 — 63
Removed due to the GLitch exploit .
IE ? Opera ? Safari ? WebView Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Chrome Android 47 — 65
不支持 47 — 65
Removed due to the GLitch exploit .
Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0 — 9.0
不支持 5.0 — 9.0
Removed due to the GLitch exploit .

图例

不支持

不支持

兼容性未知 ?

兼容性未知

见实现注意事项。

另请参阅

元数据

  • 最后修改: