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::ext::{VkSampleLocationsInfo,RawVkSampleLocationsInfo};

/// Wrapper for [VkPipelineSampleLocationsStateCreateInfoEXT](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineSampleLocationsStateCreateInfoEXT.html).
#[derive(Debug, Clone)]
pub struct VkPipelineSampleLocationsStateCreateInfo {
    pub sample_locations_enable: bool,
    pub sample_locations_info: VkSampleLocationsInfo,
}

#[doc(hidden)]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RawVkPipelineSampleLocationsStateCreateInfo {
    pub s_type: RawVkStructureType,
    pub next: *mut c_void,
    pub sample_locations_enable: u32,
    pub sample_locations_info: RawVkSampleLocationsInfo,
}

impl VkWrappedType<RawVkPipelineSampleLocationsStateCreateInfo> for VkPipelineSampleLocationsStateCreateInfo {
    fn vk_to_raw(src: &VkPipelineSampleLocationsStateCreateInfo, dst: &mut RawVkPipelineSampleLocationsStateCreateInfo) {
        dst.s_type = vk_to_raw_value(&VkStructureType::PipelineSampleLocationsStateCreateInfoExt);
        dst.next = ptr::null_mut();
        dst.sample_locations_enable = vk_to_raw_value(&src.sample_locations_enable);
        dst.sample_locations_info = vk_to_raw_value(&src.sample_locations_info);
    }
}

impl VkRawType<VkPipelineSampleLocationsStateCreateInfo> for RawVkPipelineSampleLocationsStateCreateInfo {
    fn vk_to_wrapped(src: &RawVkPipelineSampleLocationsStateCreateInfo) -> VkPipelineSampleLocationsStateCreateInfo {
        VkPipelineSampleLocationsStateCreateInfo {
            sample_locations_enable: u32::vk_to_wrapped(&src.sample_locations_enable),
            sample_locations_info: RawVkSampleLocationsInfo::vk_to_wrapped(&src.sample_locations_info),
        }
    }
}

impl Default for VkPipelineSampleLocationsStateCreateInfo {
    fn default() -> VkPipelineSampleLocationsStateCreateInfo {
        VkPipelineSampleLocationsStateCreateInfo {
            sample_locations_enable: false,
            sample_locations_info: Default::default(),
        }
    }
}

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

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