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