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 [VkAttachmentStoreOp](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkAttachmentStoreOp.html).
#[repr(i32)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum VkAttachmentStoreOp {
    Store = 0,
    DontCare = 1,
    NoneQcom = 1000301000,
}

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

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

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

impl Default for VkAttachmentStoreOp {
    fn default() -> VkAttachmentStoreOp {
        VkAttachmentStoreOp::Store
    }
}