mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +00:00
parent
fd82bc7b6d
commit
0a24d5a7f3
@ -6412,7 +6412,7 @@ uint32_t VmaBlockBufferImageGranularity::OffsetToPageIndex(VkDeviceSize offset)
|
|||||||
void VmaBlockBufferImageGranularity::AllocPage(RegionInfo& page, uint8_t allocType)
|
void VmaBlockBufferImageGranularity::AllocPage(RegionInfo& page, uint8_t allocType)
|
||||||
{
|
{
|
||||||
// When current alloc type is free then it can be overriden by new type
|
// When current alloc type is free then it can be overriden by new type
|
||||||
if (page.allocCount == 0 || page.allocCount > 0 && page.allocType == VMA_SUBALLOCATION_TYPE_FREE)
|
if (page.allocCount == 0 || (page.allocCount > 0 && page.allocType == VMA_SUBALLOCATION_TYPE_FREE))
|
||||||
page.allocType = allocType;
|
page.allocType = allocType;
|
||||||
|
|
||||||
++page.allocCount;
|
++page.allocCount;
|
||||||
@ -10471,7 +10471,7 @@ public:
|
|||||||
uint32_t GetAlgorithm() const { return m_Algorithm; }
|
uint32_t GetAlgorithm() const { return m_Algorithm; }
|
||||||
bool HasExplicitBlockSize() const { return m_ExplicitBlockSize; }
|
bool HasExplicitBlockSize() const { return m_ExplicitBlockSize; }
|
||||||
float GetPriority() const { return m_Priority; }
|
float GetPriority() const { return m_Priority; }
|
||||||
void* const GetAllocationNextPtr() const { return m_pMemoryAllocateNext; }
|
void* GetAllocationNextPtr() const { return m_pMemoryAllocateNext; }
|
||||||
|
|
||||||
VkResult CreateMinBlocks();
|
VkResult CreateMinBlocks();
|
||||||
void AddPoolStats(VmaPoolStats* pStats);
|
void AddPoolStats(VmaPoolStats* pStats);
|
||||||
|
Loading…
Reference in New Issue
Block a user