maxcountryman_web_sys/features/
gen_GpuColorWrite.rs1#![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 = GPUColorWrite , typescript_type = "GPUColorWrite")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `GpuColorWrite` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUColorWrite)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"]
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 GpuColorWrite;
18}
19#[cfg(web_sys_unstable_apis)]
20impl GpuColorWrite {
21 #[cfg(web_sys_unstable_apis)]
22 #[doc = "The `GPUColorWrite.RED` const."]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"]
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 RED: u32 = 1u64 as u32;
29 #[cfg(web_sys_unstable_apis)]
30 #[doc = "The `GPUColorWrite.GREEN` const."]
31 #[doc = ""]
32 #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"]
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 GREEN: u32 = 2u64 as u32;
37 #[cfg(web_sys_unstable_apis)]
38 #[doc = "The `GPUColorWrite.BLUE` const."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"]
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 BLUE: u32 = 4u64 as u32;
45 #[cfg(web_sys_unstable_apis)]
46 #[doc = "The `GPUColorWrite.ALPHA` const."]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"]
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 ALPHA: u32 = 8u64 as u32;
53 #[cfg(web_sys_unstable_apis)]
54 #[doc = "The `GPUColorWrite.ALL` const."]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"]
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 ALL: u32 = 15u64 as u32;
61}