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
use utils::vk_traits::*;
#[repr(i32)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum VkQueueGlobalPriority {
Low = 128,
Medium = 256,
High = 512,
Realtime = 1024,
}
#[doc(hidden)]
pub type RawVkQueueGlobalPriority = i32;
impl VkWrappedType<RawVkQueueGlobalPriority> for VkQueueGlobalPriority {
fn vk_to_raw(src: &VkQueueGlobalPriority, dst: &mut RawVkQueueGlobalPriority) {
*dst = *src as i32
}
}
impl VkRawType<VkQueueGlobalPriority> for RawVkQueueGlobalPriority {
fn vk_to_wrapped(src: &RawVkQueueGlobalPriority) -> VkQueueGlobalPriority {
unsafe {
*((src as *const i32) as *const VkQueueGlobalPriority)
}
}
}
impl Default for VkQueueGlobalPriority {
fn default() -> VkQueueGlobalPriority {
VkQueueGlobalPriority::Low
}
}