Remove unused variable VmaBlockVectorDefragmentationContext::m_AlgorithmFlags

Fixes #65
This commit is contained in:
Adam Sawicki 2019-06-28 16:53:32 +02:00
parent 34045555a6
commit 294a0ad239

View File

@ -6411,8 +6411,7 @@ public:
VmaAllocator hAllocator, VmaAllocator hAllocator,
VmaPool hCustomPool, // Optional. VmaPool hCustomPool, // Optional.
VmaBlockVector* pBlockVector, VmaBlockVector* pBlockVector,
uint32_t currFrameIndex, uint32_t currFrameIndex);
uint32_t flags);
~VmaBlockVectorDefragmentationContext(); ~VmaBlockVectorDefragmentationContext();
VmaPool GetCustomPool() const { return m_hCustomPool; } VmaPool GetCustomPool() const { return m_hCustomPool; }
@ -6431,7 +6430,6 @@ private:
// Redundant, for convenience not to fetch from m_hCustomPool->m_BlockVector or m_hAllocator->m_pBlockVectors. // Redundant, for convenience not to fetch from m_hCustomPool->m_BlockVector or m_hAllocator->m_pBlockVectors.
VmaBlockVector* const m_pBlockVector; VmaBlockVector* const m_pBlockVector;
const uint32_t m_CurrFrameIndex; const uint32_t m_CurrFrameIndex;
const uint32_t m_AlgorithmFlags;
// Owner of this object. // Owner of this object.
VmaDefragmentationAlgorithm* m_pAlgorithm; VmaDefragmentationAlgorithm* m_pAlgorithm;
@ -13309,8 +13307,7 @@ VmaBlockVectorDefragmentationContext::VmaBlockVectorDefragmentationContext(
VmaAllocator hAllocator, VmaAllocator hAllocator,
VmaPool hCustomPool, VmaPool hCustomPool,
VmaBlockVector* pBlockVector, VmaBlockVector* pBlockVector,
uint32_t currFrameIndex, uint32_t currFrameIndex) :
uint32_t algorithmFlags) :
res(VK_SUCCESS), res(VK_SUCCESS),
mutexLocked(false), mutexLocked(false),
blockContexts(VmaStlAllocator<VmaBlockDefragmentationContext>(hAllocator->GetAllocationCallbacks())), blockContexts(VmaStlAllocator<VmaBlockDefragmentationContext>(hAllocator->GetAllocationCallbacks())),
@ -13318,7 +13315,6 @@ VmaBlockVectorDefragmentationContext::VmaBlockVectorDefragmentationContext(
m_hCustomPool(hCustomPool), m_hCustomPool(hCustomPool),
m_pBlockVector(pBlockVector), m_pBlockVector(pBlockVector),
m_CurrFrameIndex(currFrameIndex), m_CurrFrameIndex(currFrameIndex),
m_AlgorithmFlags(algorithmFlags),
m_pAlgorithm(VMA_NULL), m_pAlgorithm(VMA_NULL),
m_Allocations(VmaStlAllocator<AllocInfo>(hAllocator->GetAllocationCallbacks())), m_Allocations(VmaStlAllocator<AllocInfo>(hAllocator->GetAllocationCallbacks())),
m_AllAllocations(false) m_AllAllocations(false)
@ -13439,8 +13435,7 @@ void VmaDefragmentationContext_T::AddPools(uint32_t poolCount, VmaPool* pPools)
m_hAllocator, m_hAllocator,
pool, pool,
&pool->m_BlockVector, &pool->m_BlockVector,
m_CurrFrameIndex, m_CurrFrameIndex);
m_Flags);
m_CustomPoolContexts.push_back(pBlockVectorDefragCtx); m_CustomPoolContexts.push_back(pBlockVectorDefragCtx);
} }
@ -13487,8 +13482,7 @@ void VmaDefragmentationContext_T::AddAllocations(
m_hAllocator, m_hAllocator,
hAllocPool, hAllocPool,
&hAllocPool->m_BlockVector, &hAllocPool->m_BlockVector,
m_CurrFrameIndex, m_CurrFrameIndex);
m_Flags);
m_CustomPoolContexts.push_back(pBlockVectorDefragCtx); m_CustomPoolContexts.push_back(pBlockVectorDefragCtx);
} }
} }
@ -13504,8 +13498,7 @@ void VmaDefragmentationContext_T::AddAllocations(
m_hAllocator, m_hAllocator,
VMA_NULL, // hCustomPool VMA_NULL, // hCustomPool
m_hAllocator->m_pBlockVectors[memTypeIndex], m_hAllocator->m_pBlockVectors[memTypeIndex],
m_CurrFrameIndex, m_CurrFrameIndex);
m_Flags);
m_DefaultPoolContexts[memTypeIndex] = pBlockVectorDefragCtx; m_DefaultPoolContexts[memTypeIndex] = pBlockVectorDefragCtx;
} }
} }