use utils::vk_traits::*;
#[repr(i32)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum VkPerformanceCounterScope {
CommandBuffer = 0,
RenderPass = 1,
Command = 2,
}
#[doc(hidden)]
pub type RawVkPerformanceCounterScope = i32;
impl VkWrappedType<RawVkPerformanceCounterScope> for VkPerformanceCounterScope {
fn vk_to_raw(src: &VkPerformanceCounterScope, dst: &mut RawVkPerformanceCounterScope) {
*dst = *src as i32
}
}
impl VkRawType<VkPerformanceCounterScope> for RawVkPerformanceCounterScope {
fn vk_to_wrapped(src: &RawVkPerformanceCounterScope) -> VkPerformanceCounterScope {
unsafe {
*((src as *const i32) as *const VkPerformanceCounterScope)
}
}
}
impl Default for VkPerformanceCounterScope {
fn default() -> VkPerformanceCounterScope {
VkPerformanceCounterScope::CommandBuffer
}
}