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
use utils::vk_traits::*;
pub type RawVkSystemAllocationScope = i32;
#[repr(i32)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum VkSystemAllocationScope {
Command = 0,
Object = 1,
Cache = 2,
Device = 3,
Instance = 4,
}
impl VkRawType<VkSystemAllocationScope> for RawVkSystemAllocationScope {
fn vk_to_wrapped(src: &RawVkSystemAllocationScope) -> VkSystemAllocationScope {
unsafe {
*((src as *const i32) as *const VkSystemAllocationScope)
}
}
}
impl VkWrappedType<RawVkSystemAllocationScope> for VkSystemAllocationScope {
fn vk_to_raw(src: &VkSystemAllocationScope, dst: &mut RawVkSystemAllocationScope) {
*dst = *src as i32
}
}
impl Default for VkSystemAllocationScope {
fn default() -> VkSystemAllocationScope {
VkSystemAllocationScope::Command
}
}