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::{VkShaderStageFlags,RawVkShaderStageFlags};
#[derive(Debug, Clone)]
pub struct VkPipelineExecutableProperties {
pub stages: VkShaderStageFlags,
pub name: String,
pub description: String,
pub subgroup_size: usize,
}
#[doc(hidden)]
#[repr(C)]
pub struct RawVkPipelineExecutableProperties {
pub s_type: RawVkStructureType,
pub next: *mut c_void,
pub stages: RawVkShaderStageFlags,
pub name: [c_char; 256],
pub description: [c_char; 256],
pub subgroup_size: u32,
}
impl VkRawType<VkPipelineExecutableProperties> for RawVkPipelineExecutableProperties {
fn vk_to_wrapped(src: &RawVkPipelineExecutableProperties) -> VkPipelineExecutableProperties {
VkPipelineExecutableProperties {
stages: RawVkShaderStageFlags::vk_to_wrapped(&src.stages),
name: new_string(&src.name[0] as *const c_char),
description: new_string(&src.description[0] as *const c_char),
subgroup_size: u32::vk_to_wrapped(&src.subgroup_size),
}
}
}
impl VkSetup for VkPipelineExecutableProperties {
fn vk_setup(&mut self, fn_table: *mut VkFunctionTable) {
}
}
impl VkFree for RawVkPipelineExecutableProperties {
fn vk_free(&self) {
}
}