maxcountryman_web_sys/features/
gen_GpuExternalTextureBindingLayout.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[cfg(web_sys_unstable_apis)]
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExternalTextureBindingLayout)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `GpuExternalTextureBindingLayout` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureBindingLayout`*"]
12    #[doc = ""]
13    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
14    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
15    pub type GpuExternalTextureBindingLayout;
16}
17#[cfg(web_sys_unstable_apis)]
18impl GpuExternalTextureBindingLayout {
19    #[doc = "Construct a new `GpuExternalTextureBindingLayout`."]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureBindingLayout`*"]
22    #[doc = ""]
23    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
24    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
25    pub fn new() -> Self {
26        #[allow(unused_mut)]
27        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
28        ret
29    }
30}
31#[cfg(web_sys_unstable_apis)]
32impl Default for GpuExternalTextureBindingLayout {
33    fn default() -> Self {
34        Self::new()
35    }
36}