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::{VkPipelineBindPoint,RawVkPipelineBindPoint};
use vulkan::vk::{VkPipeline,RawVkPipeline};
use vulkan::nv::{VkIndirectCommandsLayout,RawVkIndirectCommandsLayout};
#[derive(Debug, Clone)]
pub struct VkGeneratedCommandsMemoryRequirementsInfo {
pub pipeline_bind_point: VkPipelineBindPoint,
pub pipeline: VkPipeline,
pub indirect_commands_layout: VkIndirectCommandsLayout,
pub max_sequences_count: usize,
}
#[doc(hidden)]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RawVkGeneratedCommandsMemoryRequirementsInfo {
pub s_type: RawVkStructureType,
pub next: *mut c_void,
pub pipeline_bind_point: RawVkPipelineBindPoint,
pub pipeline: RawVkPipeline,
pub indirect_commands_layout: RawVkIndirectCommandsLayout,
pub max_sequences_count: u32,
}
impl VkWrappedType<RawVkGeneratedCommandsMemoryRequirementsInfo> for VkGeneratedCommandsMemoryRequirementsInfo {
fn vk_to_raw(src: &VkGeneratedCommandsMemoryRequirementsInfo, dst: &mut RawVkGeneratedCommandsMemoryRequirementsInfo) {
dst.s_type = vk_to_raw_value(&VkStructureType::GeneratedCommandsMemoryRequirementsInfoNv);
dst.next = ptr::null_mut();
dst.pipeline_bind_point = vk_to_raw_value(&src.pipeline_bind_point);
dst.pipeline = vk_to_raw_value(&src.pipeline);
dst.indirect_commands_layout = vk_to_raw_value(&src.indirect_commands_layout);
dst.max_sequences_count = vk_to_raw_value(&src.max_sequences_count);
}
}
impl VkRawType<VkGeneratedCommandsMemoryRequirementsInfo> for RawVkGeneratedCommandsMemoryRequirementsInfo {
fn vk_to_wrapped(src: &RawVkGeneratedCommandsMemoryRequirementsInfo) -> VkGeneratedCommandsMemoryRequirementsInfo {
VkGeneratedCommandsMemoryRequirementsInfo {
pipeline_bind_point: RawVkPipelineBindPoint::vk_to_wrapped(&src.pipeline_bind_point),
pipeline: RawVkPipeline::vk_to_wrapped(&src.pipeline),
indirect_commands_layout: RawVkIndirectCommandsLayout::vk_to_wrapped(&src.indirect_commands_layout),
max_sequences_count: u32::vk_to_wrapped(&src.max_sequences_count),
}
}
}
impl Default for VkGeneratedCommandsMemoryRequirementsInfo {
fn default() -> VkGeneratedCommandsMemoryRequirementsInfo {
VkGeneratedCommandsMemoryRequirementsInfo {
pipeline_bind_point: Default::default(),
pipeline: Default::default(),
indirect_commands_layout: Default::default(),
max_sequences_count: 0,
}
}
}
impl VkSetup for VkGeneratedCommandsMemoryRequirementsInfo {
fn vk_setup(&mut self, fn_table: *mut VkFunctionTable) {
VkSetup::vk_setup(&mut self.pipeline, fn_table);
VkSetup::vk_setup(&mut self.indirect_commands_layout, fn_table);
}
}
impl VkFree for RawVkGeneratedCommandsMemoryRequirementsInfo {
fn vk_free(&self) {
}
}