1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
use utils::vk_traits::*;
#[repr(i32)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum VkColorSpace {
SrgbNonlinear = 0,
DisplayP3NonlinearExt = 1000104001,
ExtendedSrgbLinearExt = 1000104002,
DisplayP3LinearExt = 1000104003,
DciP3NonlinearExt = 1000104004,
Bt709LinearExt = 1000104005,
Bt709NonlinearExt = 1000104006,
Bt2020LinearExt = 1000104007,
Hdr10St2084Ext = 1000104008,
DolbyvisionExt = 1000104009,
Hdr10HlgExt = 1000104010,
AdobergbLinearExt = 1000104011,
AdobergbNonlinearExt = 1000104012,
PassThroughExt = 1000104013,
ExtendedSrgbNonlinearExt = 1000104014,
DisplayNativeAmd = 1000213000,
}
#[doc(hidden)]
pub type RawVkColorSpace = i32;
impl VkWrappedType<RawVkColorSpace> for VkColorSpace {
fn vk_to_raw(src: &VkColorSpace, dst: &mut RawVkColorSpace) {
*dst = *src as i32
}
}
impl VkRawType<VkColorSpace> for RawVkColorSpace {
fn vk_to_wrapped(src: &RawVkColorSpace) -> VkColorSpace {
unsafe {
*((src as *const i32) as *const VkColorSpace)
}
}
}
impl Default for VkColorSpace {
fn default() -> VkColorSpace {
VkColorSpace::SrgbNonlinear
}
}