Skip to content

Commit 72c309a

Browse files
Merge pull request #459 from PawelGribov/fix_win32handle_test
Skip TestWin32Handles() if VK_KHR_external_memory_win32 is not present
2 parents 418a032 + 88d7c0d commit 72c309a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Tests.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ extern const VkAllocationCallbacks* g_Allocs;
3939
extern bool VK_KHR_buffer_device_address_enabled;
4040
extern bool VK_EXT_memory_priority_enabled;
4141
extern bool VK_KHR_maintenance5_enabled;
42+
extern bool VK_KHR_external_memory_win32_enabled;
4243
extern PFN_vkGetBufferDeviceAddressKHR g_vkGetBufferDeviceAddressKHR;
4344
void BeginSingleTimeCommands();
4445
void EndSingleTimeCommands();
@@ -8257,6 +8258,9 @@ static void TestMappingHysteresis()
82578258
static void TestWin32Handles()
82588259
{
82598260
#if VMA_EXTERNAL_MEMORY_WIN32
8261+
if (!VK_KHR_external_memory_win32_enabled)
8262+
return;
8263+
82608264
wprintf(L"Test Win32 handles\n");
82618265
constexpr static VkExportMemoryAllocateInfoKHR exportMemAllocInfo{
82628266
VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR,

0 commit comments

Comments
 (0)