From c7f26bbed9ad6cd382ed5be666f83ba276de8b03 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 2 Feb 2016 13:08:47 -0800 Subject: [PATCH] vulkan: Bump the header to 1.0.3 --- include/vulkan/vulkan.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/vulkan/vulkan.h b/include/vulkan/vulkan.h index 9940f856e8a..f5610c560bc 100644 --- a/include/vulkan/vulkan.h +++ b/include/vulkan/vulkan.h @@ -38,11 +38,14 @@ extern "C" { #include "vk_platform.h" #define VK_MAKE_VERSION(major, minor, patch) \ - ((major << 22) | (minor << 12) | patch) + (((major) << 22) | ((minor) << 12) | (patch)) // Vulkan API version supported by this file -#define VK_API_VERSION VK_MAKE_VERSION(1, 0, 2) +#define VK_API_VERSION VK_MAKE_VERSION(1, 0, 3) +#define VK_VERSION_MAJOR(version) ((uint32_t)(version) >> 22) +#define VK_VERSION_MINOR(version) (((uint32_t)(version) >> 12) & 0x3ff) +#define VK_VERSION_PATCH(version) ((uint32_t)(version) & 0xfff) #define VK_NULL_HANDLE 0 -- 2.30.2