mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-12-01 18:34:34 +00:00
Small fix in VmaAllocator_T::AllocateDedicatedMemory.
This commit is contained in:
parent
358bc78544
commit
f72365c0fc
@ -6515,16 +6515,19 @@ 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(dedicatedBuffer != VK_NULL_HANDLE)
|
if(m_UseKhrDedicatedAllocation)
|
||||||
{
|
{
|
||||||
VMA_ASSERT(dedicatedImage == VK_NULL_HANDLE);
|
if(dedicatedBuffer != VK_NULL_HANDLE)
|
||||||
dedicatedAllocInfo.buffer = dedicatedBuffer;
|
{
|
||||||
allocInfo.pNext = &dedicatedAllocInfo;
|
VMA_ASSERT(dedicatedImage == VK_NULL_HANDLE);
|
||||||
}
|
dedicatedAllocInfo.buffer = dedicatedBuffer;
|
||||||
else if(dedicatedImage != VK_NULL_HANDLE)
|
allocInfo.pNext = &dedicatedAllocInfo;
|
||||||
{
|
}
|
||||||
dedicatedAllocInfo.image = dedicatedImage;
|
else if(dedicatedImage != VK_NULL_HANDLE)
|
||||||
allocInfo.pNext = &dedicatedAllocInfo;
|
{
|
||||||
|
dedicatedAllocInfo.image = dedicatedImage;
|
||||||
|
allocInfo.pNext = &dedicatedAllocInfo;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Allocate VkDeviceMemory.
|
// Allocate VkDeviceMemory.
|
||||||
|
Loading…
Reference in New Issue
Block a user