From 0786d71b39d5a3eb980eba2d64615300d075afef Mon Sep 17 00:00:00 2001 From: Gabriel Majeri Date: Sat, 25 Aug 2018 10:48:49 +0300 Subject: [PATCH] Fix Vulkan version macros --- ash/src/vk.rs | 6 +++--- generator/src/lib.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ash/src/vk.rs b/ash/src/vk.rs index 3aa4054..eebf8a8 100644 --- a/ash/src/vk.rs +++ b/ash/src/vk.rs @@ -19,19 +19,19 @@ macro_rules! vk_make_version { #[macro_export] macro_rules! vk_version_major { ($major:expr) => { - ($major as uint32_t) >> 22 + ($major as u32) >> 22 }; } #[macro_export] macro_rules! vk_version_minor { ($minor:expr) => { - (($minor as uint32_t) >> 12) & 0x3ff + (($minor as u32) >> 12) & 0x3ff }; } #[macro_export] macro_rules! vk_version_patch { ($minor:expr) => { - ($minor as uint32_t) & 0xfff + ($minor as u32) & 0xfff }; } pub type RROutput = c_ulong; diff --git a/generator/src/lib.rs b/generator/src/lib.rs index 2257e24..d8efec8 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -163,21 +163,21 @@ pub fn vk_version_macros() -> Tokens { #[macro_export] macro_rules! vk_version_major { ($major:expr) => { - ($major as uint32_t) >> 22 + ($major as u32) >> 22 }; } #[macro_export] macro_rules! vk_version_minor { ($minor:expr) => { - (($minor as uint32_t) >> 12) & 0x3ff + (($minor as u32) >> 12) & 0x3ff }; } #[macro_export] macro_rules! vk_version_patch { ($minor:expr) => { - ($minor as uint32_t) & 0xfff + ($minor as u32) & 0xfff }; } }