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;
39
39
extern bool VK_KHR_buffer_device_address_enabled;
40
40
extern bool VK_EXT_memory_priority_enabled;
41
41
extern bool VK_KHR_maintenance5_enabled;
42
+ extern bool VK_KHR_external_memory_win32_enabled;
42
43
extern PFN_vkGetBufferDeviceAddressKHR g_vkGetBufferDeviceAddressKHR;
43
44
void BeginSingleTimeCommands ();
44
45
void EndSingleTimeCommands ();
@@ -8257,6 +8258,9 @@ static void TestMappingHysteresis()
8257
8258
static void TestWin32Handles ()
8258
8259
{
8259
8260
#if VMA_EXTERNAL_MEMORY_WIN32
8261
+ if (!VK_KHR_external_memory_win32_enabled)
8262
+ return ;
8263
+
8260
8264
wprintf (L" Test Win32 handles\n " );
8261
8265
constexpr static VkExportMemoryAllocateInfoKHR exportMemAllocInfo{
8262
8266
VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR,
You can’t perform that action at this time.
0 commit comments