Fixes. Left only new member VmaPoolCreateInfo::pMemoryAllocateNext.

This commit is contained in:
Adam Sawicki 2021-06-21 14:47:37 +02:00
parent d780fe0263
commit 82731feeb9
2 changed files with 16 additions and 54 deletions

View file

@ -1440,19 +1440,6 @@ void SetAllocatorCreateInfo(VmaAllocatorCreateInfo& outInfo)
heapSizeLimit[0] = 512ull * 1024 * 1024;
outInfo.pHeapSizeLimit = heapSizeLimit.data();
*/
// External memory test
VkPhysicalDeviceMemoryProperties memProps = {};
vkGetPhysicalDeviceMemoryProperties(g_hPhysicalDevice, &memProps);
static VkExternalMemoryHandleTypeFlagsKHR externalMemoryHandleTypes[VK_MAX_MEMORY_TYPES] = {};
for(uint32_t i = 0; i < memProps.memoryTypeCount; ++i)
{
if(memProps.memoryTypes[i].propertyFlags & VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT)
{
externalMemoryHandleTypes[i] = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR;
}
}
outInfo.pTypeExternalMemoryHandleTypes = externalMemoryHandleTypes;
}
static void PrintPhysicalDeviceProperties(const VkPhysicalDeviceProperties& properties)