web_sys/features/
gen_gpu_buffer_usage.rs1#[cfg(web_sys_unstable_apis)]
2#[doc = ""]
3#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
4#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
5pub mod gpu_buffer_usage {
6 #![allow(unused_imports)]
7 #![allow(clippy::all)]
8 use super::super::*;
9 use wasm_bindgen::prelude::*;
10 #[cfg(web_sys_unstable_apis)]
11 #[doc = "The `GPUBufferUsage.MAP_READ` const."]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `gpu_buffer_usage`*"]
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 const MAP_READ: u32 = 1u64 as u32;
18 #[cfg(web_sys_unstable_apis)]
19 #[doc = "The `GPUBufferUsage.MAP_WRITE` const."]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `gpu_buffer_usage`*"]
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 const MAP_WRITE: u32 = 2u64 as u32;
26 #[cfg(web_sys_unstable_apis)]
27 #[doc = "The `GPUBufferUsage.COPY_SRC` const."]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `gpu_buffer_usage`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
33 pub const COPY_SRC: u32 = 4u64 as u32;
34 #[cfg(web_sys_unstable_apis)]
35 #[doc = "The `GPUBufferUsage.COPY_DST` const."]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `gpu_buffer_usage`*"]
38 #[doc = ""]
39 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
40 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
41 pub const COPY_DST: u32 = 8u64 as u32;
42 #[cfg(web_sys_unstable_apis)]
43 #[doc = "The `GPUBufferUsage.INDEX` const."]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `gpu_buffer_usage`*"]
46 #[doc = ""]
47 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
48 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
49 pub const INDEX: u32 = 16u64 as u32;
50 #[cfg(web_sys_unstable_apis)]
51 #[doc = "The `GPUBufferUsage.VERTEX` const."]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `gpu_buffer_usage`*"]
54 #[doc = ""]
55 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
56 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
57 pub const VERTEX: u32 = 32u64 as u32;
58 #[cfg(web_sys_unstable_apis)]
59 #[doc = "The `GPUBufferUsage.UNIFORM` const."]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `gpu_buffer_usage`*"]
62 #[doc = ""]
63 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
64 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
65 pub const UNIFORM: u32 = 64u64 as u32;
66 #[cfg(web_sys_unstable_apis)]
67 #[doc = "The `GPUBufferUsage.STORAGE` const."]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `gpu_buffer_usage`*"]
70 #[doc = ""]
71 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
72 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
73 pub const STORAGE: u32 = 128u64 as u32;
74 #[cfg(web_sys_unstable_apis)]
75 #[doc = "The `GPUBufferUsage.INDIRECT` const."]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `gpu_buffer_usage`*"]
78 #[doc = ""]
79 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
80 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
81 pub const INDIRECT: u32 = 256u64 as u32;
82 #[cfg(web_sys_unstable_apis)]
83 #[doc = "The `GPUBufferUsage.QUERY_RESOLVE` const."]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `gpu_buffer_usage`*"]
86 #[doc = ""]
87 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
88 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
89 pub const QUERY_RESOLVE: u32 = 512u64 as u32;
90}