mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-15 01:08:31 +00:00
Fixes. Left only new member VmaPoolCreateInfo::pMemoryAllocateNext.
This commit is contained in:
parent
d780fe0263
commit
82731feeb9
2 changed files with 16 additions and 54 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue