Skip to main content

lava/vulkan/vk/
vk_base_in_structure.rs

1// Generated by `scripts/generate.js`
2
3use std::os::raw::c_char;
4use std::ops::Deref;
5use std::ptr;
6use std::cmp;
7use std::mem;
8use utils::c_bindings::*;
9use utils::vk_convert::*;
10use utils::vk_null::*;
11use utils::vk_ptr::*;
12use utils::vk_traits::*;
13use vulkan::vk::*;
14use vulkan::vk::{VkStructureType,RawVkStructureType};
15
16/// Wrapper for [VkBaseInStructure](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkBaseInStructure.html).
17#[derive(Debug, Clone)]
18pub struct VkBaseInStructure {
19    pub s_type: VkStructureType,
20}
21
22#[doc(hidden)]
23#[repr(C)]
24#[derive(Debug, Copy, Clone)]
25pub struct RawVkBaseInStructure {
26    pub s_type: RawVkStructureType,
27    pub next: *mut c_void,
28}
29
30impl VkWrappedType<RawVkBaseInStructure> for VkBaseInStructure {
31    fn vk_to_raw(src: &VkBaseInStructure, dst: &mut RawVkBaseInStructure) {
32        dst.s_type = vk_to_raw_value(&src.s_type);
33        dst.next = ptr::null_mut();
34    }
35}
36
37impl VkRawType<VkBaseInStructure> for RawVkBaseInStructure {
38    fn vk_to_wrapped(src: &RawVkBaseInStructure) -> VkBaseInStructure {
39        VkBaseInStructure {
40            s_type: RawVkStructureType::vk_to_wrapped(&src.s_type),
41        }
42    }
43}
44
45impl Default for VkBaseInStructure {
46    fn default() -> VkBaseInStructure {
47        VkBaseInStructure {
48            s_type: Default::default(),
49        }
50    }
51}
52
53impl VkSetup for VkBaseInStructure {
54    fn vk_setup(&mut self, fn_table: *mut VkFunctionTable) {
55        
56    }
57}
58
59impl VkFree for RawVkBaseInStructure {
60    fn vk_free(&self) {
61        
62    }
63}