use utils::vk_traits::*;
#[repr(i32)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum VkPerformanceCounterStorage {
Int32 = 0,
Int64 = 1,
Uint32 = 2,
Uint64 = 3,
Float32 = 4,
Float64 = 5,
}
#[doc(hidden)]
pub type RawVkPerformanceCounterStorage = i32;
impl VkWrappedType<RawVkPerformanceCounterStorage> for VkPerformanceCounterStorage {
fn vk_to_raw(src: &VkPerformanceCounterStorage, dst: &mut RawVkPerformanceCounterStorage) {
*dst = *src as i32
}
}
impl VkRawType<VkPerformanceCounterStorage> for RawVkPerformanceCounterStorage {
fn vk_to_wrapped(src: &RawVkPerformanceCounterStorage) -> VkPerformanceCounterStorage {
unsafe {
*((src as *const i32) as *const VkPerformanceCounterStorage)
}
}
}
impl Default for VkPerformanceCounterStorage {
fn default() -> VkPerformanceCounterStorage {
VkPerformanceCounterStorage::Int32
}
}