Removed unused parameter

After #481
This commit is contained in:
Adam Sawicki 2025-04-09 15:42:58 +02:00
parent 989a1764ad
commit 7720de05f4

View file

@ -10537,8 +10537,7 @@ private:
size_t allocationCount); size_t allocationCount);
VkResult CalcAllocationParams( VkResult CalcAllocationParams(
VmaAllocationCreateInfo& outCreateInfo, VmaAllocationCreateInfo& outCreateInfo,
bool dedicatedRequired, bool dedicatedRequired);
bool dedicatedPreferred);
/* /*
Calculates and returns bit mask of memory types that can support defragmentation Calculates and returns bit mask of memory types that can support defragmentation
@ -13940,8 +13939,7 @@ VkResult VmaAllocator_T::CalcMemTypeParams(
VkResult VmaAllocator_T::CalcAllocationParams( VkResult VmaAllocator_T::CalcAllocationParams(
VmaAllocationCreateInfo& inoutCreateInfo, VmaAllocationCreateInfo& inoutCreateInfo,
bool dedicatedRequired, bool dedicatedRequired)
bool dedicatedPreferred)
{ {
VMA_ASSERT((inoutCreateInfo.flags & VMA_ASSERT((inoutCreateInfo.flags &
(VMA_ALLOCATION_CREATE_HOST_ACCESS_SEQUENTIAL_WRITE_BIT | VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT)) != (VMA_ALLOCATION_CREATE_HOST_ACCESS_SEQUENTIAL_WRITE_BIT | VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT)) !=
@ -14029,7 +14027,7 @@ VkResult VmaAllocator_T::AllocateMemory(
} }
VmaAllocationCreateInfo createInfoFinal = createInfo; VmaAllocationCreateInfo createInfoFinal = createInfo;
VkResult res = CalcAllocationParams(createInfoFinal, requiresDedicatedAllocation, prefersDedicatedAllocation); VkResult res = CalcAllocationParams(createInfoFinal, requiresDedicatedAllocation);
if(res != VK_SUCCESS) if(res != VK_SUCCESS)
return res; return res;