1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// 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::{VkValidationCache,RawVkValidationCache};

/// Wrapper for [VkShaderModuleValidationCacheCreateInfoEXT](https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkShaderModuleValidationCacheCreateInfoEXT.html)
#[derive(Debug, Clone)]
pub struct VkShaderModuleValidationCacheCreateInfo<'a> {
    pub validation_cache: &'a VkValidationCache,
}

#[doc(hidden)]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RawVkShaderModuleValidationCacheCreateInfo {
    pub s_type: RawVkStructureType,
    pub next: *const c_void,
    pub validation_cache: RawVkValidationCache,
}

impl<'a> VkWrappedType<RawVkShaderModuleValidationCacheCreateInfo> for VkShaderModuleValidationCacheCreateInfo<'a> {
    fn vk_to_raw(src: &VkShaderModuleValidationCacheCreateInfo, dst: &mut RawVkShaderModuleValidationCacheCreateInfo) {
        dst.s_type = vk_to_raw_value(&VkStructureType::ShaderModuleValidationCacheCreateInfoExt);
        dst.next = ptr::null();
        dst.validation_cache = vk_to_raw_value(src.validation_cache);
    }
}

impl Default for VkShaderModuleValidationCacheCreateInfo<'static> {
    fn default() -> VkShaderModuleValidationCacheCreateInfo<'static> {
        VkShaderModuleValidationCacheCreateInfo {
            validation_cache: vk_null_ref(),
        }
    }
}

impl<'a> VkSetup for VkShaderModuleValidationCacheCreateInfo<'a> {
    fn vk_setup(&mut self, fn_table: *mut VkInstanceFunctionTable, instance: RawVkInstance, device: RawVkDevice) {
        
    }
}

impl VkFree for RawVkShaderModuleValidationCacheCreateInfo {
    fn vk_free(&mut self) {
        
    }
}