From 2ce101acbc91ebff745951efbe6cf0834e01f9bf Mon Sep 17 00:00:00 2001 From: Audrey Baxter Date: Tue, 17 Apr 2018 01:31:47 -0400 Subject: [PATCH] Fixed incorrect bitshifts in vk_version_major and vk_version_minor --- ash/src/vk.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ash/src/vk.rs b/ash/src/vk.rs index d185cbf..bdd8aa5 100644 --- a/ash/src/vk.rs +++ b/ash/src/vk.rs @@ -186,12 +186,12 @@ macro_rules! vk_make_version { #[macro_export] macro_rules! vk_version_major { - ($major: expr) => (($major as uint32_t) << 22) + ($major: expr) => (($major as uint32_t) >> 22) } #[macro_export] macro_rules! vk_version_minor { - ($minor: expr) => ((($minor as uint32_t) << 12) & 0x3ff) + ($minor: expr) => ((($minor as uint32_t) >> 12) & 0x3ff) } #[macro_export]