Merge pull request #59 from baxtea/master

Fixed incorrect bitshifts in vk_version_major and vk_version_minor
This commit is contained in:
Maik Klein 2018-04-17 14:49:49 +02:00 committed by GitHub
commit 663c8d1770
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,12 +186,12 @@ macro_rules! vk_make_version {
#[macro_export] #[macro_export]
macro_rules! vk_version_major { macro_rules! vk_version_major {
($major: expr) => (($major as uint32_t) << 22) ($major: expr) => (($major as uint32_t) >> 22)
} }
#[macro_export] #[macro_export]
macro_rules! vk_version_minor { macro_rules! vk_version_minor {
($minor: expr) => ((($minor as uint32_t) << 12) & 0x3ff) ($minor: expr) => ((($minor as uint32_t) >> 12) & 0x3ff)
} }
#[macro_export] #[macro_export]