File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ extern const VkAllocationCallbacks* g_Allocs;
3939extern bool VK_KHR_buffer_device_address_enabled;
4040extern bool VK_EXT_memory_priority_enabled;
4141extern bool VK_KHR_maintenance5_enabled;
42+ extern bool VK_KHR_external_memory_win32_enabled;
4243extern PFN_vkGetBufferDeviceAddressKHR g_vkGetBufferDeviceAddressKHR;
4344void BeginSingleTimeCommands ();
4445void EndSingleTimeCommands ();
@@ -8257,6 +8258,9 @@ static void TestMappingHysteresis()
82578258static 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,
You can’t perform that action at this time.
0 commit comments