lava 0.4.9

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

use std::os::raw::c_char;
use std::ops::Deref;
use std::ptr;
use std::cmp;
use std::mem;
use utils::c_bindings::*;
use utils::vk_convert::*;
use utils::vk_null::*;
use utils::vk_ptr::*;
use utils::vk_traits::*;
use vulkan::vk::*;
use vulkan::vk::{VkStructureType,RawVkStructureType};
use vulkan::vk::{VkFormatProperties,RawVkFormatProperties};

/// Wrapper for [VkFormatProperties2](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkFormatProperties2.html).
#[derive(Debug, Clone)]
pub struct VkFormatProperties2 {
    pub format_properties: VkFormatProperties,
}

#[doc(hidden)]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RawVkFormatProperties2 {
    pub s_type: RawVkStructureType,
    pub next: *mut c_void,
    pub format_properties: RawVkFormatProperties,
}

impl VkWrappedType<RawVkFormatProperties2> for VkFormatProperties2 {
    fn vk_to_raw(src: &VkFormatProperties2, dst: &mut RawVkFormatProperties2) {
        dst.s_type = vk_to_raw_value(&VkStructureType::FormatProperties2);
        dst.next = ptr::null_mut();
        dst.format_properties = vk_to_raw_value(&src.format_properties);
    }
}

impl VkRawType<VkFormatProperties2> for RawVkFormatProperties2 {
    fn vk_to_wrapped(src: &RawVkFormatProperties2) -> VkFormatProperties2 {
        VkFormatProperties2 {
            format_properties: RawVkFormatProperties::vk_to_wrapped(&src.format_properties),
        }
    }
}

impl Default for VkFormatProperties2 {
    fn default() -> VkFormatProperties2 {
        VkFormatProperties2 {
            format_properties: Default::default(),
        }
    }
}

impl VkSetup for VkFormatProperties2 {
    fn vk_setup(&mut self, fn_table: *mut VkFunctionTable) {
        VkSetup::vk_setup(&mut self.format_properties, fn_table);
    }
}

impl VkFree for RawVkFormatProperties2 {
    fn vk_free(&self) {
        
    }
}