web_sys/features/
gen_GpuQuerySet.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 #[wasm_bindgen(
9 extends = "::js_sys::Object",
10 js_name = "GPUQuerySet",
11 typescript_type = "GPUQuerySet"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `GpuQuerySet` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`*"]
19 #[doc = ""]
20 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22 pub type GpuQuerySet;
23 #[cfg(web_sys_unstable_apis)]
24 #[cfg(feature = "GpuQueryType")]
25 #[wasm_bindgen(method, getter, js_class = "GPUQuerySet", js_name = "type")]
26 #[doc = "Getter for the `type` field of this object."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/type)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuQueryType`*"]
31 #[doc = ""]
32 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
33 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
34 pub fn type_(this: &GpuQuerySet) -> GpuQueryType;
35 #[cfg(web_sys_unstable_apis)]
36 #[wasm_bindgen(method, getter, js_class = "GPUQuerySet", js_name = "count")]
37 #[doc = "Getter for the `count` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/count)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`*"]
42 #[doc = ""]
43 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
44 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
45 pub fn count(this: &GpuQuerySet) -> u32;
46 #[cfg(web_sys_unstable_apis)]
47 #[wasm_bindgen(method, getter, js_class = "GPUQuerySet", js_name = "label")]
48 #[doc = "Getter for the `label` field of this object."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/label)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`*"]
53 #[doc = ""]
54 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
55 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
56 pub fn label(this: &GpuQuerySet) -> ::alloc::string::String;
57 #[cfg(web_sys_unstable_apis)]
58 #[wasm_bindgen(method, setter, js_class = "GPUQuerySet", js_name = "label")]
59 #[doc = "Setter for the `label` field of this object."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/label)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`*"]
64 #[doc = ""]
65 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
66 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
67 pub fn set_label(this: &GpuQuerySet, value: &str);
68 #[cfg(web_sys_unstable_apis)]
69 #[wasm_bindgen(method, js_class = "GPUQuerySet")]
70 #[doc = "The `destroy()` method."]
71 #[doc = ""]
72 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/destroy)"]
73 #[doc = ""]
74 #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`*"]
75 #[doc = ""]
76 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
77 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
78 pub fn destroy(this: &GpuQuerySet);
79}