ExtensionDisjointTimerQuery.hx 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Copyright (C)2005-2017 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated from mozilla\WebGLRenderingContext.webidl. Do not edit!
  23. package js.html.webgl;
  24. /**
  25. The EXT_disjoint_timer_query extension is part of the WebGL API and provides a way to measure the duration of a set of GL commands, without stalling the rendering pipeline.
  26. Documentation [EXT_disjoint_timer_query](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
  27. @see <https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query>
  28. **/
  29. @:native("EXT_disjoint_timer_query")
  30. extern class ExtensionDisjointTimerQuery
  31. {
  32. static inline var QUERY_COUNTER_BITS_EXT : Int = 34916;
  33. static inline var CURRENT_QUERY_EXT : Int = 34917;
  34. static inline var QUERY_RESULT_EXT : Int = 34918;
  35. static inline var QUERY_RESULT_AVAILABLE_EXT : Int = 34919;
  36. static inline var TIME_ELAPSED_EXT : Int = 35007;
  37. static inline var TIMESTAMP_EXT : Int = 36392;
  38. static inline var GPU_DISJOINT_EXT : Int = 36795;
  39. /**
  40. Creates a new `WebGLTimerQueryEXT`.
  41. **/
  42. function createQueryEXT() : TimerQueryEXT;
  43. /**
  44. Deletes a given `WebGLTimerQueryEXT`.
  45. **/
  46. function deleteQueryEXT( query : TimerQueryEXT ) : Void;
  47. /**
  48. Returns `true` if a given object is a `WebGLTimerQueryEXT`.
  49. **/
  50. function isQueryEXT( query : TimerQueryEXT ) : Bool;
  51. /**
  52. The timer starts when all commands prior to `beginQueryEXT` have been fully executed.
  53. **/
  54. function beginQueryEXT( target : Int, query : TimerQueryEXT ) : Void;
  55. /**
  56. The timer stops when all commands prior to `endQueryEXT` have been fully executed.
  57. **/
  58. function endQueryEXT( target : Int ) : Void;
  59. /**
  60. Records the current time into the corresponding query object.
  61. **/
  62. function queryCounterEXT( query : TimerQueryEXT, target : Int ) : Void;
  63. /**
  64. Returns information about a query target.
  65. **/
  66. function getQueryEXT( target : Int, pname : Int ) : Dynamic;
  67. /**
  68. Return the state of a query object.
  69. **/
  70. function getQueryObjectEXT( query : TimerQueryEXT, pname : Int ) : Dynamic;
  71. }