EXTDisjointTimerQuery.hx 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*
  2. * Copyright (C)2005-2019 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.extension;
  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 EXTDisjointTimerQuery {
  31. /**
  32. A `GLint` indicating the number of bits used to hold the query result for the given target.
  33. **/
  34. static inline var QUERY_COUNTER_BITS_EXT : Int = 34916;
  35. /**
  36. A `WebGLQuery` object, which is the currently active query for the given target.
  37. **/
  38. static inline var CURRENT_QUERY_EXT : Int = 34917;
  39. /**
  40. A `GLuint64EXT` containing the query result.
  41. **/
  42. static inline var QUERY_RESULT_EXT : Int = 34918;
  43. /**
  44. A `GLboolean` indicating whether or not a query result is available.
  45. **/
  46. static inline var QUERY_RESULT_AVAILABLE_EXT : Int = 34919;
  47. /**
  48. Elapsed time (in nanoseconds).
  49. **/
  50. static inline var TIME_ELAPSED_EXT : Int = 35007;
  51. /**
  52. The current time.
  53. **/
  54. static inline var TIMESTAMP_EXT : Int = 36392;
  55. /**
  56. A `GLboolean` indicating whether or not the GPU performed any disjoint operation.
  57. **/
  58. static inline var GPU_DISJOINT_EXT : Int = 36795;
  59. /**
  60. Creates a new `WebGLQuery`.
  61. **/
  62. function createQueryEXT() : js.html.webgl.Query;
  63. /**
  64. Deletes a given `WebGLQuery`.
  65. **/
  66. function deleteQueryEXT( query : js.html.webgl.Query ) : Void;
  67. /**
  68. Returns `true` if a given object is a `WebGLQuery`.
  69. **/
  70. function isQueryEXT( query : js.html.webgl.Query ) : Bool;
  71. /**
  72. The timer starts when all commands prior to `beginQueryEXT` have been fully executed.
  73. **/
  74. function beginQueryEXT( target : Int, query : js.html.webgl.Query ) : Void;
  75. /**
  76. The timer stops when all commands prior to `endQueryEXT` have been fully executed.
  77. **/
  78. function endQueryEXT( target : Int ) : Void;
  79. /**
  80. Records the current time into the corresponding query object.
  81. **/
  82. function queryCounterEXT( query : js.html.webgl.Query, target : Int ) : Void;
  83. /**
  84. Returns information about a query target.
  85. **/
  86. function getQueryEXT( target : Int, pname : Int ) : Dynamic;
  87. /**
  88. Return the state of a query object.
  89. **/
  90. function getQueryObjectEXT( query : js.html.webgl.Query, pname : Int ) : Dynamic;
  91. }