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 = GPUBufferUsage , typescript_type = "GPUBufferUsage")] 8 #[derive(Debug, Clone, PartialEq, Eq)] 9 #[doc = "The `GpuBufferUsage` class."] 10 #[doc = ""] 11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBufferUsage)"] 12 #[doc = ""] 13 #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] 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 GpuBufferUsage; 18 } 19 #[cfg(web_sys_unstable_apis)] 20 impl GpuBufferUsage { 21 #[cfg(web_sys_unstable_apis)] 22 #[doc = "The `GPUBufferUsage.MAP_READ` const."] 23 #[doc = ""] 24 #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] 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)*"] 28 pub const MAP_READ: u32 = 1u64 as u32; 29 #[cfg(web_sys_unstable_apis)] 30 #[doc = "The `GPUBufferUsage.MAP_WRITE` const."] 31 #[doc = ""] 32 #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] 33 #[doc = ""] 34 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 35 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 36 pub const MAP_WRITE: u32 = 2u64 as u32; 37 #[cfg(web_sys_unstable_apis)] 38 #[doc = "The `GPUBufferUsage.COPY_SRC` const."] 39 #[doc = ""] 40 #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] 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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 44 pub const COPY_SRC: u32 = 4u64 as u32; 45 #[cfg(web_sys_unstable_apis)] 46 #[doc = "The `GPUBufferUsage.COPY_DST` const."] 47 #[doc = ""] 48 #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] 49 #[doc = ""] 50 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 51 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 52 pub const COPY_DST: u32 = 8u64 as u32; 53 #[cfg(web_sys_unstable_apis)] 54 #[doc = "The `GPUBufferUsage.INDEX` const."] 55 #[doc = ""] 56 #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] 57 #[doc = ""] 58 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 59 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 60 pub const INDEX: u32 = 16u64 as u32; 61 #[cfg(web_sys_unstable_apis)] 62 #[doc = "The `GPUBufferUsage.VERTEX` const."] 63 #[doc = ""] 64 #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] 65 #[doc = ""] 66 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 67 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 68 pub const VERTEX: u32 = 32u64 as u32; 69 #[cfg(web_sys_unstable_apis)] 70 #[doc = "The `GPUBufferUsage.UNIFORM` const."] 71 #[doc = ""] 72 #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] 73 #[doc = ""] 74 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 75 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 76 pub const UNIFORM: u32 = 64u64 as u32; 77 #[cfg(web_sys_unstable_apis)] 78 #[doc = "The `GPUBufferUsage.STORAGE` const."] 79 #[doc = ""] 80 #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] 81 #[doc = ""] 82 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 83 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 84 pub const STORAGE: u32 = 128u64 as u32; 85 #[cfg(web_sys_unstable_apis)] 86 #[doc = "The `GPUBufferUsage.INDIRECT` const."] 87 #[doc = ""] 88 #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] 89 #[doc = ""] 90 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 91 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 92 pub const INDIRECT: u32 = 256u64 as u32; 93 #[cfg(web_sys_unstable_apis)] 94 #[doc = "The `GPUBufferUsage.QUERY_RESOLVE` const."] 95 #[doc = ""] 96 #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] 97 #[doc = ""] 98 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 99 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 100 pub const QUERY_RESOLVE: u32 = 512u64 as u32; 101 } 102