Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1030156 of WebGLTimerQueryEXT

  • Revision slug: Web/API/WebGLTimerQueryEXT
  • Revision title: WebGLTimerQueryEXT
  • Revision id: 1030156
  • Created:
  • Creator: fscholz
  • Is current revision? Yes
  • Comment new page

Revision Content

{{APIRef("WebGL")}}

The WebGLTimerQueryEXT interface is part of the WebGL {{domxref("EXT_disjoint_timer_query")}} extension and exposes a timer query object.

WebGL extensions are available using the {{domxref("WebGLRenderingContext.getExtension()")}} method. For more information, see also Using Extensions in the WebGL tutorial.

Availability: This extension is available to both, {{domxref("WebGLRenderingContext", "WebGL1", "", 1)}} and {{domxref("WebGL2RenderingContext", "WebGL2", "", 1)}} contexts.

When working with WebGLTimerQueryEXT objects, the following methods of the {{domxref("EXT_disjoint_timer_query")}} extension are useful:

  • {{domxref("EXT_disjoint_timer_query.createQueryEXT()", "ext.createQueryEXT()")}}
  • {{domxref("EXT_disjoint_timer_query.deleteQueryEXT()", "ext.deleteQueryEXT()")}}
  • {{domxref("EXT_disjoint_timer_query.isQueryEXT()", "ext.isQueryEXT()")}}
  • {{domxref("EXT_disjoint_timer_query.beginQueryEXT()", "ext.beginQueryEXT()")}}
  • {{domxref("EXT_disjoint_timer_query.endQueryEXT()", "ext.endQueryEXT()")}}
  • {{domxref("EXT_disjoint_timer_query.queryCounterEXT()", "ext.queryCounterEXT()")}}
  • {{domxref("EXT_disjoint_timer_query.getQueryEXT()", "ext.getQueryEXT()")}}
  • {{domxref("EXT_disjoint_timer_query.getQueryObjectEXT()", "ext.getQueryObjectEXT()")}}

Examples

var ext = gl.getExtension("EXT_disjoint_timer_query");
var query = ext.createQueryEXT(); // creates a WebGLTimerQueryEXT object

Specifications

Specification Status Comment
{{SpecName('EXT_disjoint_timer_query', '', 'EXT_disjoint_timer_query')}} {{Spec2('EXT_disjoint_timer_query')}} Initial definition.

Browser compatibility

{{CompatibilityTable}}
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatUnknown}} {{CompatGeckoDesktop(41)}} [1] {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}

[1] Toggling the webgl.enable-draft-extensions preference in about:config is required.

See also

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

Revision Source

<div>{{APIRef("WebGL")}}</div>

<p>The <strong><code>WebGLTimerQueryEXT</code></strong> interface is part of the <a href="/en-US/docs/Web/API/WebGL_API">WebGL</a> {{domxref("EXT_disjoint_timer_query")}} extension and exposes a timer query object.</p>

<p>WebGL extensions are available using the {{domxref("WebGLRenderingContext.getExtension()")}} method. For more information, see also <a href="/en-US/docs/Web/API/WebGL_API/Using_Extensions">Using Extensions</a> in the <a href="/en-US/docs/Web/API/WebGL_API/Tutorial">WebGL tutorial</a>.</p>

<div class="note">
<p><strong>Availability:</strong> This extension is available to both, {{domxref("WebGLRenderingContext", "WebGL1", "", 1)}} and {{domxref("WebGL2RenderingContext", "WebGL2", "", 1)}} contexts.</p>
</div>

<p>When working with <code>WebGLTimerQueryEXT</code> objects, the following methods of the {{domxref("EXT_disjoint_timer_query")}} extension are useful:</p>

<ul>
 <li>{{domxref("EXT_disjoint_timer_query.createQueryEXT()", "ext.createQueryEXT()")}}</li>
 <li>{{domxref("EXT_disjoint_timer_query.deleteQueryEXT()", "ext.deleteQueryEXT()")}}</li>
 <li>{{domxref("EXT_disjoint_timer_query.isQueryEXT()", "ext.isQueryEXT()")}}</li>
 <li>{{domxref("EXT_disjoint_timer_query.beginQueryEXT()", "ext.beginQueryEXT()")}}</li>
 <li>{{domxref("EXT_disjoint_timer_query.endQueryEXT()", "ext.endQueryEXT()")}}</li>
 <li>{{domxref("EXT_disjoint_timer_query.queryCounterEXT()", "ext.queryCounterEXT()")}}</li>
 <li>{{domxref("EXT_disjoint_timer_query.getQueryEXT()", "ext.getQueryEXT()")}}</li>
 <li>{{domxref("EXT_disjoint_timer_query.getQueryObjectEXT()", "ext.getQueryObjectEXT()")}}</li>
</ul>

<h2 id="Examples">Examples</h2>

<pre class="brush: js">
var ext = gl.getExtension("EXT_disjoint_timer_query");
var query = ext.createQueryEXT(); // creates a WebGLTimerQueryEXT object
</pre>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('EXT_disjoint_timer_query', '', 'EXT_disjoint_timer_query')}}</td>
   <td>{{Spec2('EXT_disjoint_timer_query')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatGeckoDesktop(41)}} [1]</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Chrome for Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<p>[1] Toggling the webgl.enable-draft-extensions preference in about:config is required.</p>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{domxref("WebGLRenderingContext.getExtension()")}}</li>
 <li>{{domxref("EXT_disjoint_timer_query")}}</li>
</ul>
Revert to this revision