EXT_disjoint_timer_query.queryCounterEXT() 方法在 WebGL API records the current time into the corresponding query object.

句法

void ext.queryCounterEXT(query, target);
					

参数

query
WebGLQuery object for which to record the current time.
target
A GLenum specifying the target of the time query. Must be ext.TIMESTAMP_EXT .

返回值

None.

范例

var ext = gl.getExtension('EXT_disjoint_timer_query');
var startQuery = ext.createQueryEXT();
var endQuery = ext.createQueryEXT();
ext.queryCounterEXT(startQuery, ext.TIMESTAMP_EXT);
// ...
ext.queryCounterEXT(endQuery, ext.TIMESTAMP_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
queryCounterEXT 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 .

图例

不支持

不支持

兼容性未知 ?

兼容性未知

见实现注意事项。

另请参阅

元数据

  • 最后修改: