1 #![allow(unused_imports)]
2 use wasm_bindgen::prelude::*;
3 #[cfg(web_sys_unstable_apis)]
4 #[wasm_bindgen]
5 #[doc = "The `GpuTextureFormat` enum."]
6 #[doc = ""]
7 #[doc = "*This API requires the following crate features to be activated: `GpuTextureFormat`*"]
8 #[doc = ""]
9 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
10 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
11 #[derive(Debug, Clone, Copy, PartialEq, Eq)]
12 pub enum GpuTextureFormat {
13     R8unorm = "r8unorm",
14     R8snorm = "r8snorm",
15     R8uint = "r8uint",
16     R8sint = "r8sint",
17     R16uint = "r16uint",
18     R16sint = "r16sint",
19     R16float = "r16float",
20     Rg8unorm = "rg8unorm",
21     Rg8snorm = "rg8snorm",
22     Rg8uint = "rg8uint",
23     Rg8sint = "rg8sint",
24     R32uint = "r32uint",
25     R32sint = "r32sint",
26     R32float = "r32float",
27     Rg16uint = "rg16uint",
28     Rg16sint = "rg16sint",
29     Rg16float = "rg16float",
30     Rgba8unorm = "rgba8unorm",
31     Rgba8unormSrgb = "rgba8unorm-srgb",
32     Rgba8snorm = "rgba8snorm",
33     Rgba8uint = "rgba8uint",
34     Rgba8sint = "rgba8sint",
35     Bgra8unorm = "bgra8unorm",
36     Bgra8unormSrgb = "bgra8unorm-srgb",
37     Rgb10a2unorm = "rgb10a2unorm",
38     Rg11b10float = "rg11b10float",
39     Rg32uint = "rg32uint",
40     Rg32sint = "rg32sint",
41     Rg32float = "rg32float",
42     Rgba16uint = "rgba16uint",
43     Rgba16sint = "rgba16sint",
44     Rgba16float = "rgba16float",
45     Rgba32uint = "rgba32uint",
46     Rgba32sint = "rgba32sint",
47     Rgba32float = "rgba32float",
48     Depth32float = "depth32float",
49     Depth24plus = "depth24plus",
50     Depth24plusStencil8 = "depth24plus-stencil8",
51 }
52