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