lava 0.4.9

Rust wrapper to manipulate Vulkan more conveniently than with bindings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use utils::vk_traits::*;

impl VkRawType<bool> for u32 {
    fn vk_to_wrapped(value: &u32) -> bool {
        *value != 0
    }
}

impl VkWrappedType<u32> for bool {
    fn vk_to_raw(value: &bool, dst: &mut u32) {
        *dst = if *value { 1 } else { 0 }
    }
}