mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +00:00
Small fix in VmaAllocator_T::AllocateDedicatedMemory.
This commit is contained in:
parent
358bc78544
commit
f72365c0fc
@ -6515,6 +6515,8 @@ VkResult VmaAllocator_T::AllocateDedicatedMemory(
|
|||||||
allocInfo.allocationSize = size;
|
allocInfo.allocationSize = size;
|
||||||
|
|
||||||
VkMemoryDedicatedAllocateInfoKHR dedicatedAllocInfo = { VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO_KHR };
|
VkMemoryDedicatedAllocateInfoKHR dedicatedAllocInfo = { VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO_KHR };
|
||||||
|
if(m_UseKhrDedicatedAllocation)
|
||||||
|
{
|
||||||
if(dedicatedBuffer != VK_NULL_HANDLE)
|
if(dedicatedBuffer != VK_NULL_HANDLE)
|
||||||
{
|
{
|
||||||
VMA_ASSERT(dedicatedImage == VK_NULL_HANDLE);
|
VMA_ASSERT(dedicatedImage == VK_NULL_HANDLE);
|
||||||
@ -6526,6 +6528,7 @@ VkResult VmaAllocator_T::AllocateDedicatedMemory(
|
|||||||
dedicatedAllocInfo.image = dedicatedImage;
|
dedicatedAllocInfo.image = dedicatedImage;
|
||||||
allocInfo.pNext = &dedicatedAllocInfo;
|
allocInfo.pNext = &dedicatedAllocInfo;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Allocate VkDeviceMemory.
|
// Allocate VkDeviceMemory.
|
||||||
VkDeviceMemory hMemory = VK_NULL_HANDLE;
|
VkDeviceMemory hMemory = VK_NULL_HANDLE;
|
||||||
|
Loading…
Reference in New Issue
Block a user