lava 0.4.9

Rust wrapper to manipulate Vulkan more conveniently than with bindings.
Documentation
// Generated by `scripts/generate.js`

use utils::vk_traits::*;

/// Wrapper for [VkMemoryMapFlags](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkMemoryMapFlags.html).
///
/// Use the macro `VkMemoryMapFlags!` as an alternative method to create a structure. For example, these two snippets return the same value:
/// ```
/// VkMemoryMapFlags!()
/// ```
/// ```
/// VkMemoryMapFlags {
/// }
/// ```
#[derive(Debug, Clone)]
pub struct VkMemoryMapFlags {
    
}

#[doc(hidden)]
pub type RawVkMemoryMapFlags = u32;

impl VkWrappedType<RawVkMemoryMapFlags> for VkMemoryMapFlags {
    fn vk_to_raw(src: &VkMemoryMapFlags, dst: &mut RawVkMemoryMapFlags) {
        *dst = 0;
    }
}

impl VkRawType<VkMemoryMapFlags> for RawVkMemoryMapFlags {
    fn vk_to_wrapped(src: &RawVkMemoryMapFlags) -> VkMemoryMapFlags {
        VkMemoryMapFlags {
            
        }
    }
}

impl Default for VkMemoryMapFlags {
    fn default() -> VkMemoryMapFlags {
        VkMemoryMapFlags {
            
        }
    }
}

impl VkMemoryMapFlags {
    
    /// Return a structure with all flags to `false`.
    pub fn none() -> Self {
        VkMemoryMapFlags {
            
        }
    }
    
    /// Return a structure with all flags to `true`.
    pub fn all() -> Self {
        VkMemoryMapFlags {
            
        }
    }
    
    /// Return the numerical bit flags corresponding to the structure (as described in the Vulkan specs).
    pub fn to_u32(&self) -> u32 {
        0
    }
    
    /// Create a structure corresponding to the specified numerical bit flags.
    pub fn from_u32(value: u32) -> Self {
        VkMemoryMapFlags {
            
        }
    }
}

#[doc(hidden)]
#[macro_export]
macro_rules! VkMemoryMapFlags {
    ( $( $x:ident ),* ) => {
        VkMemoryMapFlags {
            $($x: true,)*
            ..VkMemoryMapFlags::none()
        }
    }
}