From 88d7c0da4a8059cea9e3792c39335e05bc628929 Mon Sep 17 00:00:00 2001 From: Pavel Gribov Date: Sat, 25 Jan 2025 23:21:18 +0300 Subject: [PATCH] Skip TestWin32Handles() if VK_KHR_external_memory_win32 is not present --- src/Tests.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Tests.cpp b/src/Tests.cpp index 790f195..b154476 100644 --- a/src/Tests.cpp +++ b/src/Tests.cpp @@ -39,6 +39,7 @@ extern const VkAllocationCallbacks* g_Allocs; extern bool VK_KHR_buffer_device_address_enabled; extern bool VK_EXT_memory_priority_enabled; extern bool VK_KHR_maintenance5_enabled; +extern bool VK_KHR_external_memory_win32_enabled; extern PFN_vkGetBufferDeviceAddressKHR g_vkGetBufferDeviceAddressKHR; void BeginSingleTimeCommands(); void EndSingleTimeCommands(); @@ -8257,6 +8258,9 @@ static void TestMappingHysteresis() static void TestWin32Handles() { #if VMA_EXTERNAL_MEMORY_WIN32 + if (!VK_KHR_external_memory_win32_enabled) + return; + wprintf(L"Test Win32 handles\n"); constexpr static VkExportMemoryAllocateInfoKHR exportMemAllocInfo{ VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR,