web_sys/features/
gen_ExtDisjointTimerQuery.rs

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