lava 0.4.9

Rust wrapper to manipulate Vulkan more conveniently than with bindings.
Documentation
// Generated by `scripts/generate.js`

use utils::vk_traits::*;

/// Wrapper for [VkSystemAllocationScope](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkSystemAllocationScope.html).
#[repr(i32)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum VkSystemAllocationScope {
    Command = 0,
    Object = 1,
    Cache = 2,
    Device = 3,
    Instance = 4,
}

#[doc(hidden)]
pub type RawVkSystemAllocationScope = i32;

impl VkWrappedType<RawVkSystemAllocationScope> for VkSystemAllocationScope {
    fn vk_to_raw(src: &VkSystemAllocationScope, dst: &mut RawVkSystemAllocationScope) {
        *dst = *src as i32
    }
}

impl VkRawType<VkSystemAllocationScope> for RawVkSystemAllocationScope {
    fn vk_to_wrapped(src: &RawVkSystemAllocationScope) -> VkSystemAllocationScope {
        unsafe {
            *((src as *const i32) as *const VkSystemAllocationScope)
        }
    }
}

impl Default for VkSystemAllocationScope {
    fn default() -> VkSystemAllocationScope {
        VkSystemAllocationScope::Command
    }
}