From 3a776dd1d8d909e2501fce3718b78f3e29ad44be Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Tue, 9 Mar 2021 09:13:32 +0100 Subject: [PATCH] Update to VK_HEADER_VERSION 172. --- Vulkan-Headers | 2 +- samples/utils/utils.cpp | 7 ++++++- vulkan/vulkan.hpp | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Vulkan-Headers b/Vulkan-Headers index c428484..89d3663 160000 --- a/Vulkan-Headers +++ b/Vulkan-Headers @@ -1 +1 @@ -Subproject commit c428484bc886f60efd98334b80ea777ae2e24089 +Subproject commit 89d366355e6fe1221c9be40bb2cf3716449e9a7e diff --git a/samples/utils/utils.cpp b/samples/utils/utils.cpp index b419b03..425ce27 100644 --- a/samples/utils/utils.cpp +++ b/samples/utils/utils.cpp @@ -119,7 +119,12 @@ namespace vk vk::DeviceCreateInfo deviceCreateInfo( {}, deviceQueueCreateInfo, {}, enabledExtensions, physicalDeviceFeatures ); deviceCreateInfo.pNext = pNext; - return physicalDevice.createDevice( deviceCreateInfo ); + vk::Device device = physicalDevice.createDevice( deviceCreateInfo ); +#if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 ) + // initialize function pointers for instance + VULKAN_HPP_DEFAULT_DISPATCHER.init( device ); +#endif + return device; } std::vector createFramebuffers( vk::Device const & device, diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index 4e769de..bfc9694 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -93,7 +93,7 @@ extern "C" __declspec( dllimport ) FARPROC __stdcall GetProcAddress( HINSTANCE h # include #endif -static_assert( VK_HEADER_VERSION == 171, "Wrong VK_HEADER_VERSION!" ); +static_assert( VK_HEADER_VERSION == 172, "Wrong VK_HEADER_VERSION!" ); // 32-bit vulkan is not typesafe for handles, so don't allow copy constructors on this platform by default. // To enable this feature on 32-bit platforms please define VULKAN_HPP_TYPESAFE_CONVERSION