1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[cfg(web_sys_unstable_apis)] 5 #[wasm_bindgen] 6 extern "C" { 7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPU , typescript_type = "GPU")] 8 #[derive(Debug, Clone, PartialEq, Eq)] 9 #[doc = "The `Gpu` class."] 10 #[doc = ""] 11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU)"] 12 #[doc = ""] 13 #[doc = "*This API requires the following crate features to be activated: `Gpu`*"] 14 #[doc = ""] 15 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 16 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 17 pub type Gpu; 18 #[cfg(web_sys_unstable_apis)] 19 # [wasm_bindgen (method , structural , js_class = "GPU" , js_name = requestAdapter)] 20 #[doc = "The `requestAdapter()` method."] 21 #[doc = ""] 22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/requestAdapter)"] 23 #[doc = ""] 24 #[doc = "*This API requires the following crate features to be activated: `Gpu`*"] 25 #[doc = ""] 26 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 27 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] request_adapter(this: &Gpu) -> ::js_sys::Promise28 pub fn request_adapter(this: &Gpu) -> ::js_sys::Promise; 29 #[cfg(web_sys_unstable_apis)] 30 #[cfg(feature = "GpuRequestAdapterOptions")] 31 # [wasm_bindgen (method , structural , js_class = "GPU" , js_name = requestAdapter)] 32 #[doc = "The `requestAdapter()` method."] 33 #[doc = ""] 34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/requestAdapter)"] 35 #[doc = ""] 36 #[doc = "*This API requires the following crate features to be activated: `Gpu`, `GpuRequestAdapterOptions`*"] 37 #[doc = ""] 38 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 39 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] request_adapter_with_options( this: &Gpu, options: &GpuRequestAdapterOptions, ) -> ::js_sys::Promise40 pub fn request_adapter_with_options( 41 this: &Gpu, 42 options: &GpuRequestAdapterOptions, 43 ) -> ::js_sys::Promise; 44 } 45