web_sys/features/
gen_ExtDisjointTimerQuery.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "EXT_disjoint_timer_query" , typescript_type = "EXT_disjoint_timer_query")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `ExtDisjointTimerQuery` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"]
14 pub type ExtDisjointTimerQuery;
15 #[cfg(feature = "WebGlQuery")]
16 #[wasm_bindgen(
17 method,
18 js_class = "EXT_disjoint_timer_query",
19 js_name = "beginQueryEXT"
20 )]
21 #[doc = "The `beginQueryEXT()` method."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/beginQueryEXT)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"]
26 pub fn begin_query_ext(this: &ExtDisjointTimerQuery, target: u32, query: &WebGlQuery);
27 #[cfg(feature = "WebGlQuery")]
28 #[wasm_bindgen(
29 method,
30 js_class = "EXT_disjoint_timer_query",
31 js_name = "createQueryEXT"
32 )]
33 #[doc = "The `createQueryEXT()` method."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/createQueryEXT)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"]
38 pub fn create_query_ext(this: &ExtDisjointTimerQuery) -> Option<WebGlQuery>;
39 #[cfg(feature = "WebGlQuery")]
40 #[wasm_bindgen(
41 method,
42 js_class = "EXT_disjoint_timer_query",
43 js_name = "deleteQueryEXT"
44 )]
45 #[doc = "The `deleteQueryEXT()` method."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/deleteQueryEXT)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"]
50 pub fn delete_query_ext(this: &ExtDisjointTimerQuery, query: Option<&WebGlQuery>);
51 #[wasm_bindgen(method, js_class = "EXT_disjoint_timer_query", js_name = "endQueryEXT")]
52 #[doc = "The `endQueryEXT()` method."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/endQueryEXT)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"]
57 pub fn end_query_ext(this: &ExtDisjointTimerQuery, target: u32);
58 #[wasm_bindgen(method, js_class = "EXT_disjoint_timer_query", js_name = "getQueryEXT")]
59 #[doc = "The `getQueryEXT()` method."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/getQueryEXT)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"]
64 pub fn get_query_ext(
65 this: &ExtDisjointTimerQuery,
66 target: u32,
67 pname: u32,
68 ) -> ::wasm_bindgen::JsValue;
69 #[cfg(feature = "WebGlQuery")]
70 #[wasm_bindgen(
71 method,
72 js_class = "EXT_disjoint_timer_query",
73 js_name = "getQueryObjectEXT"
74 )]
75 #[doc = "The `getQueryObjectEXT()` method."]
76 #[doc = ""]
77 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/getQueryObjectEXT)"]
78 #[doc = ""]
79 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"]
80 pub fn get_query_object_ext(
81 this: &ExtDisjointTimerQuery,
82 query: &WebGlQuery,
83 pname: u32,
84 ) -> ::wasm_bindgen::JsValue;
85 #[cfg(feature = "WebGlQuery")]
86 #[wasm_bindgen(method, js_class = "EXT_disjoint_timer_query", js_name = "isQueryEXT")]
87 #[doc = "The `isQueryEXT()` method."]
88 #[doc = ""]
89 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/isQueryEXT)"]
90 #[doc = ""]
91 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"]
92 pub fn is_query_ext(this: &ExtDisjointTimerQuery, query: Option<&WebGlQuery>) -> bool;
93 #[cfg(feature = "WebGlQuery")]
94 #[wasm_bindgen(
95 method,
96 js_class = "EXT_disjoint_timer_query",
97 js_name = "queryCounterEXT"
98 )]
99 #[doc = "The `queryCounterEXT()` method."]
100 #[doc = ""]
101 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/queryCounterEXT)"]
102 #[doc = ""]
103 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"]
104 pub fn query_counter_ext(this: &ExtDisjointTimerQuery, query: &WebGlQuery, target: u32);
105}
106impl ExtDisjointTimerQuery {
107 #[doc = "The `EXT_disjoint_timer_query.QUERY_COUNTER_BITS_EXT` const."]
108 #[doc = ""]
109 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"]
110 pub const QUERY_COUNTER_BITS_EXT: u32 = 34916u64 as u32;
111 #[doc = "The `EXT_disjoint_timer_query.CURRENT_QUERY_EXT` const."]
112 #[doc = ""]
113 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"]
114 pub const CURRENT_QUERY_EXT: u32 = 34917u64 as u32;
115 #[doc = "The `EXT_disjoint_timer_query.QUERY_RESULT_EXT` const."]
116 #[doc = ""]
117 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"]
118 pub const QUERY_RESULT_EXT: u32 = 34918u64 as u32;
119 #[doc = "The `EXT_disjoint_timer_query.QUERY_RESULT_AVAILABLE_EXT` const."]
120 #[doc = ""]
121 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"]
122 pub const QUERY_RESULT_AVAILABLE_EXT: u32 = 34919u64 as u32;
123 #[doc = "The `EXT_disjoint_timer_query.TIME_ELAPSED_EXT` const."]
124 #[doc = ""]
125 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"]
126 pub const TIME_ELAPSED_EXT: u32 = 35007u64 as u32;
127 #[doc = "The `EXT_disjoint_timer_query.TIMESTAMP_EXT` const."]
128 #[doc = ""]
129 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"]
130 pub const TIMESTAMP_EXT: u32 = 36392u64 as u32;
131 #[doc = "The `EXT_disjoint_timer_query.GPU_DISJOINT_EXT` const."]
132 #[doc = ""]
133 #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"]
134 pub const GPU_DISJOINT_EXT: u32 = 36795u64 as u32;
135}