EXTDisjointTimerQuery.hx 3.8 KB

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