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::{VkPipeline,RawVkPipeline};

/// Wrapper for [VkPipelineExecutableInfoKHR](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineExecutableInfoKHR.html).
#[derive(Debug, Clone)]
pub struct VkPipelineExecutableInfo {
    pub pipeline: VkPipeline,
    pub executable_index: usize,
}

#[doc(hidden)]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RawVkPipelineExecutableInfo {
    pub s_type: RawVkStructureType,
    pub next: *mut c_void,
    pub pipeline: RawVkPipeline,
    pub executable_index: u32,
}

impl VkWrappedType<RawVkPipelineExecutableInfo> for VkPipelineExecutableInfo {
    fn vk_to_raw(src: &VkPipelineExecutableInfo, dst: &mut RawVkPipelineExecutableInfo) {
        dst.s_type = vk_to_raw_value(&VkStructureType::PipelineExecutableInfoKhr);
        dst.next = ptr::null_mut();
        dst.pipeline = vk_to_raw_value(&src.pipeline);
        dst.executable_index = vk_to_raw_value(&src.executable_index);
    }
}

impl VkRawType<VkPipelineExecutableInfo> for RawVkPipelineExecutableInfo {
    fn vk_to_wrapped(src: &RawVkPipelineExecutableInfo) -> VkPipelineExecutableInfo {
        VkPipelineExecutableInfo {
            pipeline: RawVkPipeline::vk_to_wrapped(&src.pipeline),
            executable_index: u32::vk_to_wrapped(&src.executable_index),
        }
    }
}

impl Default for VkPipelineExecutableInfo {
    fn default() -> VkPipelineExecutableInfo {
        VkPipelineExecutableInfo {
            pipeline: Default::default(),
            executable_index: 0,
        }
    }
}

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

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