Skip to content

Commit 634aac7

Browse files
committed
Refined the vulkan version header checks
1 parent 86acd7e commit 634aac7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/vsg/vk/vulkan.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,10 @@ typedef VkDeviceAddress(VKAPI_PTR* PFN_vkGetBufferDeviceAddressKHR_Compatibility
806806
// Definitions not provided prior to 1.3.211
807807
//
808808
#if VK_HEADER_VERSION < 204
809+
#define VK_API_VERSION_1_3 VK_MAKE_VERSION(1, 3, 0)
810+
#endif
811+
812+
#if VK_HEADER_VERSION < 211
809813
typedef enum VkInstanceCreateFlagBits {
810814
VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR = 0x00000001,
811815
VK_INSTANCE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
@@ -815,9 +819,6 @@ typedef VkFlags VkInstanceCreateFlags;
815819
#define VK_KHR_portability_enumeration 1
816820
#define VK_KHR_PORTABILITY_ENUMERATION_SPEC_VERSION 1
817821
#define VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME "VK_KHR_portability_enumeration"
818-
819-
#define VK_API_VERSION_1_3 VK_MAKE_VERSION(1, 3, 0)
820-
821822
#endif
822823

823824
//

0 commit comments

Comments
 (0)