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
use utils::vk_traits::*;
#[repr(i32)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum VkGeometryType {
Triangles = 0,
Aabbs = 1,
}
#[doc(hidden)]
pub type RawVkGeometryType = i32;
impl VkWrappedType<RawVkGeometryType> for VkGeometryType {
fn vk_to_raw(src: &VkGeometryType, dst: &mut RawVkGeometryType) {
*dst = *src as i32
}
}
impl VkRawType<VkGeometryType> for RawVkGeometryType {
fn vk_to_wrapped(src: &RawVkGeometryType) -> VkGeometryType {
unsafe {
*((src as *const i32) as *const VkGeometryType)
}
}
}
impl Default for VkGeometryType {
fn default() -> VkGeometryType {
VkGeometryType::Triangles
}
}