mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-14 16:58:34 +00:00
parent
989a1764ad
commit
7720de05f4
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue