EXT_disjoint_timer_query: beginQueryEXT() method
Khả dụng hạn chế
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Phương thức EXT_disjoint_timer_query.beginQueryEXT() của WebGL API bắt đầu một truy vấn thời gian.
Cú pháp
js
beginQueryEXT(target, query)
Tham số
target-
Một
GLenumchỉ định target của truy vấn thời gian. Phải làext.TIME_ELAPSED_EXT. query-
Một đối tượng
WebGLQueryđể bắt đầu truy vấn thời gian.
Giá trị trả về
Không có (undefined).
Ví dụ
js
const ext = gl.getExtension("EXT_disjoint_timer_query");
const query = ext.createQueryEXT();
ext.beginQueryEXT(ext.TIME_ELAPSED_EXT, query);
// …
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| WebGL EXT_disjoint_timer_query Extension Specification> |