EXT_disjoint_timer_query: beginQueryEXT() method

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("WebGL")}}{{AvailableInWorkers}}

The **EXT_disjoint_timer_query.beginQueryEXT()** method of the WebGL API starts a timer query.

Syntax

js-nolint
beginQueryEXT(target, query)

Parameters

  • target
  • : A {{domxref("WebGL_API/Types", "GLenum")}} specifying the target of the time query. Must be

ext.TIME_ELAPSED_EXT.

  • query
  • : A {{domxref("WebGLQuery")}} object for which to start the time querying.

Return value

None ({{jsxref("undefined")}}).

Examples

js
const ext = gl.getExtension("EXT_disjoint_timer_query");
const query = ext.createQueryEXT();
ext.beginQueryEXT(ext.TIME_ELAPSED_EXT, query);

// …

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("WebGLRenderingContext.getExtension()")}}
  • {{domxref("WebGLQuery")}}
  • {{domxref("EXT_disjoint_timer_query")}}