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 [VkLineRasterizationModeEXT](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkLineRasterizationModeEXT.html).
#[repr(i32)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum VkLineRasterizationMode {
    Default = 0,
    Rectangular = 1,
    Bresenham = 2,
    RectangularSmooth = 3,
}

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

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

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

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