EXT_disjoint_timer_query:queryCounterEXT() 方法
WebGL API 的 EXT_disjoint_timer_query.queryCounterEXT() 方法會將當前時間記錄到相應的查詢物件中。
語法
js
queryCounterEXT(query, target)
引數
返回值
無(undefined)。
示例
js
const ext = gl.getExtension("EXT_disjoint_timer_query");
const startQuery = ext.createQueryEXT();
const endQuery = ext.createQueryEXT();
ext.queryCounterEXT(startQuery, ext.TIMESTAMP_EXT);
// …
ext.queryCounterEXT(endQuery, ext.TIMESTAMP_EXT);
規範
| 規範 |
|---|
| WebGL EXT_disjoint_timer_query 擴充套件規範 |
瀏覽器相容性
載入中…