Skip to main content

web_sys/features/
gen_GpuAdapterInfo.rs

1#![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 = "GPUAdapterInfo",
11        typescript_type = "GPUAdapterInfo"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `GpuAdapterInfo` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
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 GpuAdapterInfo;
23    #[cfg(web_sys_unstable_apis)]
24    #[wasm_bindgen(method, getter, js_class = "GPUAdapterInfo", js_name = "vendor")]
25    #[doc = "Getter for the `vendor` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/vendor)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
30    #[doc = ""]
31    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33    pub fn vendor(this: &GpuAdapterInfo) -> ::alloc::string::String;
34    #[cfg(web_sys_unstable_apis)]
35    #[wasm_bindgen(method, getter, js_class = "GPUAdapterInfo", js_name = "architecture")]
36    #[doc = "Getter for the `architecture` field of this object."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/architecture)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
41    #[doc = ""]
42    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
43    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
44    pub fn architecture(this: &GpuAdapterInfo) -> ::alloc::string::String;
45    #[cfg(web_sys_unstable_apis)]
46    #[wasm_bindgen(method, getter, js_class = "GPUAdapterInfo", js_name = "device")]
47    #[doc = "Getter for the `device` field of this object."]
48    #[doc = ""]
49    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/device)"]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
52    #[doc = ""]
53    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
54    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
55    pub fn device(this: &GpuAdapterInfo) -> ::alloc::string::String;
56    #[cfg(web_sys_unstable_apis)]
57    #[wasm_bindgen(method, getter, js_class = "GPUAdapterInfo", js_name = "description")]
58    #[doc = "Getter for the `description` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/description)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
63    #[doc = ""]
64    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
65    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
66    pub fn description(this: &GpuAdapterInfo) -> ::alloc::string::String;
67    #[cfg(web_sys_unstable_apis)]
68    #[wasm_bindgen(
69        method,
70        getter,
71        js_class = "GPUAdapterInfo",
72        js_name = "subgroupMinSize"
73    )]
74    #[doc = "Getter for the `subgroupMinSize` field of this object."]
75    #[doc = ""]
76    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/subgroupMinSize)"]
77    #[doc = ""]
78    #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
79    #[doc = ""]
80    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
81    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
82    pub fn subgroup_min_size(this: &GpuAdapterInfo) -> u32;
83    #[cfg(web_sys_unstable_apis)]
84    #[wasm_bindgen(
85        method,
86        getter,
87        js_class = "GPUAdapterInfo",
88        js_name = "subgroupMaxSize"
89    )]
90    #[doc = "Getter for the `subgroupMaxSize` field of this object."]
91    #[doc = ""]
92    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)"]
93    #[doc = ""]
94    #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
95    #[doc = ""]
96    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
97    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
98    pub fn subgroup_max_size(this: &GpuAdapterInfo) -> u32;
99    #[cfg(web_sys_unstable_apis)]
100    #[wasm_bindgen(
101        method,
102        getter,
103        js_class = "GPUAdapterInfo",
104        js_name = "isFallbackAdapter"
105    )]
106    #[doc = "Getter for the `isFallbackAdapter` field of this object."]
107    #[doc = ""]
108    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)"]
109    #[doc = ""]
110    #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"]
111    #[doc = ""]
112    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
113    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
114    pub fn is_fallback_adapter(this: &GpuAdapterInfo) -> bool;
115}