Skip to content

Commit 7720de0

Browse files
Removed unused parameter
After #481
1 parent 989a176 commit 7720de0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

include/vk_mem_alloc.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10537,8 +10537,7 @@ struct VmaAllocator_T
1053710537
size_t allocationCount);
1053810538
VkResult CalcAllocationParams(
1053910539
VmaAllocationCreateInfo& outCreateInfo,
10540-
bool dedicatedRequired,
10541-
bool dedicatedPreferred);
10540+
bool dedicatedRequired);
1054210541

1054310542
/*
1054410543
Calculates and returns bit mask of memory types that can support defragmentation
@@ -13940,8 +13939,7 @@ VkResult VmaAllocator_T::CalcMemTypeParams(
1394013939

1394113940
VkResult VmaAllocator_T::CalcAllocationParams(
1394213941
VmaAllocationCreateInfo& inoutCreateInfo,
13943-
bool dedicatedRequired,
13944-
bool dedicatedPreferred)
13942+
bool dedicatedRequired)
1394513943
{
1394613944
VMA_ASSERT((inoutCreateInfo.flags &
1394713945
(VMA_ALLOCATION_CREATE_HOST_ACCESS_SEQUENTIAL_WRITE_BIT | VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT)) !=
@@ -14029,7 +14027,7 @@ VkResult VmaAllocator_T::AllocateMemory(
1402914027
}
1403014028

1403114029
VmaAllocationCreateInfo createInfoFinal = createInfo;
14032-
VkResult res = CalcAllocationParams(createInfoFinal, requiresDedicatedAllocation, prefersDedicatedAllocation);
14030+
VkResult res = CalcAllocationParams(createInfoFinal, requiresDedicatedAllocation);
1403314031
if(res != VK_SUCCESS)
1403414032
return res;
1403514033

0 commit comments

Comments
 (0)