Merge pull request #459 from PawelGribov/fix_win32handle_test

Skip TestWin32Handles() if VK_KHR_external_memory_win32 is not present
This commit is contained in:
Adam Sawicki 2025-01-29 15:15:49 +01:00 committed by GitHub
commit 72c309a83b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,