Skip to main content

lava/vulkan/vk/
vk_semaphore_create_flags.rs

1// Generated by `scripts/generate.js`
2
3use utils::vk_traits::*;
4
5/// Wrapper for [VkSemaphoreCreateFlags](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkSemaphoreCreateFlags.html).
6///
7/// Use the macro `VkSemaphoreCreateFlags!` as an alternative method to create a structure. For example, these two snippets return the same value:
8/// ```
9/// VkSemaphoreCreateFlags!()
10/// ```
11/// ```
12/// VkSemaphoreCreateFlags {
13/// }
14/// ```
15#[derive(Debug, Clone)]
16pub struct VkSemaphoreCreateFlags {
17    
18}
19
20#[doc(hidden)]
21pub type RawVkSemaphoreCreateFlags = u32;
22
23impl VkWrappedType<RawVkSemaphoreCreateFlags> for VkSemaphoreCreateFlags {
24    fn vk_to_raw(src: &VkSemaphoreCreateFlags, dst: &mut RawVkSemaphoreCreateFlags) {
25        *dst = 0;
26    }
27}
28
29impl VkRawType<VkSemaphoreCreateFlags> for RawVkSemaphoreCreateFlags {
30    fn vk_to_wrapped(src: &RawVkSemaphoreCreateFlags) -> VkSemaphoreCreateFlags {
31        VkSemaphoreCreateFlags {
32            
33        }
34    }
35}
36
37impl Default for VkSemaphoreCreateFlags {
38    fn default() -> VkSemaphoreCreateFlags {
39        VkSemaphoreCreateFlags {
40            
41        }
42    }
43}
44
45impl VkSemaphoreCreateFlags {
46    
47    /// Return a structure with all flags to `false`.
48    pub fn none() -> Self {
49        VkSemaphoreCreateFlags {
50            
51        }
52    }
53    
54    /// Return a structure with all flags to `true`.
55    pub fn all() -> Self {
56        VkSemaphoreCreateFlags {
57            
58        }
59    }
60    
61    /// Return the numerical bit flags corresponding to the structure (as described in the Vulkan specs).
62    pub fn to_u32(&self) -> u32 {
63        0
64    }
65    
66    /// Create a structure corresponding to the specified numerical bit flags.
67    pub fn from_u32(value: u32) -> Self {
68        VkSemaphoreCreateFlags {
69            
70        }
71    }
72}
73
74#[doc(hidden)]
75#[macro_export]
76macro_rules! VkSemaphoreCreateFlags {
77    ( $( $x:ident ),* ) => {
78        VkSemaphoreCreateFlags {
79            $($x: true,)*
80            ..VkSemaphoreCreateFlags::none()
81        }
82    }
83}