Lines Matching refs:m_Blocks

5842     bool IsEmpty() const { return m_Blocks.empty(); }  in IsEmpty()
5884 size_t GetBlockCount() const { return m_Blocks.size(); } in GetBlockCount()
5885 VmaDeviceMemoryBlock* GetBlock(size_t index) const { return m_Blocks[index]; } in GetBlock()
5908 VmaVector< VmaDeviceMemoryBlock*, VmaStlAllocator<VmaDeviceMemoryBlock*> > m_Blocks; member
6155 BlockInfoVector m_Blocks; variable
11285 m_Blocks(VmaStlAllocator<VmaDeviceMemoryBlock*>(hAllocator->GetAllocationCallbacks())), in VmaBlockVector()
11292 for(size_t i = m_Blocks.size(); i--; ) in ~VmaBlockVector()
11294 m_Blocks[i]->Destroy(m_hAllocator); in ~VmaBlockVector()
11295 vma_delete(m_hAllocator, m_Blocks[i]); in ~VmaBlockVector()
11316 const size_t blockCount = m_Blocks.size(); in GetPoolStats()
11327 const VmaDeviceMemoryBlock* const pBlock = m_Blocks[blockIndex]; in GetPoolStats()
11404 (m_Blocks.size() < m_MaxBlockCount); in AllocatePage()
11455 if(!m_Blocks.empty()) in AllocatePage()
11457 VmaDeviceMemoryBlock* const pCurrBlock = m_Blocks.back(); in AllocatePage()
11472 … VMA_DEBUG_LOG(" Returned from last block #%u", (uint32_t)(m_Blocks.size() - 1)); in AllocatePage()
11482 for(size_t blockIndex = 0; blockIndex < m_Blocks.size(); ++blockIndex ) in AllocatePage()
11484 VmaDeviceMemoryBlock* const pCurrBlock = m_Blocks[blockIndex]; in AllocatePage()
11507 for(size_t blockIndex = m_Blocks.size(); blockIndex--; ) in AllocatePage()
11509 VmaDeviceMemoryBlock* const pCurrBlock = m_Blocks[blockIndex]; in AllocatePage()
11581 VmaDeviceMemoryBlock* const pBlock = m_Blocks[newBlockIndex]; in AllocatePage()
11623 for(size_t blockIndex = 0; blockIndex < m_Blocks.size(); ++blockIndex ) in AllocatePage()
11625 VmaDeviceMemoryBlock* const pCurrBlock = m_Blocks[blockIndex]; in AllocatePage()
11659 for(size_t blockIndex = m_Blocks.size(); blockIndex--; ) in AllocatePage()
11661 VmaDeviceMemoryBlock* const pCurrBlock = m_Blocks[blockIndex]; in AllocatePage()
11793 if(m_HasEmptyBlock && m_Blocks.size() > m_MinBlockCount) in Free()
11808 VmaDeviceMemoryBlock* pLastBlock = m_Blocks.back(); in Free()
11809 if(pLastBlock->m_pMetadata->IsEmpty() && m_Blocks.size() > m_MinBlockCount) in Free()
11812 m_Blocks.pop_back(); in Free()
11833 for(size_t i = m_Blocks.size(); i--; ) in CalcMaxBlockSize()
11835 result = VMA_MAX(result, m_Blocks[i]->m_pMetadata->GetSize()); in CalcMaxBlockSize()
11846 for(uint32_t blockIndex = 0; blockIndex < m_Blocks.size(); ++blockIndex) in Remove()
11848 if(m_Blocks[blockIndex] == pBlock) in Remove()
11850 VmaVectorRemove(m_Blocks, blockIndex); in Remove()
11862 for(size_t i = 1; i < m_Blocks.size(); ++i) in IncrementallySortBlocks()
11864 … if(m_Blocks[i - 1]->m_pMetadata->GetSumFreeSize() > m_Blocks[i]->m_pMetadata->GetSumFreeSize()) in IncrementallySortBlocks()
11866 VMA_SWAP(m_Blocks[i - 1], m_Blocks[i]); in IncrementallySortBlocks()
11972 m_Blocks.push_back(pBlock); in CreateBlock()
11975 *pNewBlockIndex = m_Blocks.size() - 1; in CreateBlock()
11985 const size_t blockCount = m_Blocks.size(); in ApplyDefragmentationMovesCpu()
12018 VmaDeviceMemoryBlock* pBlock = m_Blocks[blockIndex]; in ApplyDefragmentationMovesCpu()
12052 VmaDeviceMemoryBlock* const pSrcBlock = m_Blocks[move.srcBlockIndex]; in ApplyDefragmentationMovesCpu()
12076 VmaDeviceMemoryBlock* const pDstBlock = m_Blocks[move.dstBlockIndex]; in ApplyDefragmentationMovesCpu()
12094 VmaDeviceMemoryBlock* pBlock = m_Blocks[blockIndex]; in ApplyDefragmentationMovesCpu()
12105 const size_t blockCount = m_Blocks.size(); in ApplyDefragmentationMovesGpu()
12130 VmaDeviceMemoryBlock* pBlock = m_Blocks[blockIndex]; in ApplyDefragmentationMovesGpu()
12179 for(size_t blockIndex = m_Blocks.size(); blockIndex--; ) in FreeEmptyBlocks()
12181 VmaDeviceMemoryBlock* pBlock = m_Blocks[blockIndex]; in FreeEmptyBlocks()
12184 if(m_Blocks.size() > m_MinBlockCount) in FreeEmptyBlocks()
12192 VmaVectorRemove(m_Blocks, blockIndex); in FreeEmptyBlocks()
12233 json.WriteNumber((uint64_t)m_Blocks.size()); in PrintDetailedMap()
12256 for(size_t i = 0; i < m_Blocks.size(); ++i) in PrintDetailedMap()
12259 json.ContinueString(m_Blocks[i]->GetId()); in PrintDetailedMap()
12262 m_Blocks[i]->m_pMetadata->PrintDetailedMap(json); in PrintDetailedMap()
12389 for(size_t i = 0; i < m_Blocks.size(); ++i) in CalcAllocationCount()
12391 result += m_Blocks[i]->m_pMetadata->GetAllocationCount(); in CalcAllocationCount()
12403 for(size_t i = 0, count = m_Blocks.size(); i < count; ++i) in IsBufferImageGranularityConflictPossible()
12405 VmaDeviceMemoryBlock* const pBlock = m_Blocks[i]; in IsBufferImageGranularityConflictPossible()
12422 for(uint32_t blockIndex = 0; blockIndex < m_Blocks.size(); ++blockIndex) in MakePoolAllocationsLost()
12424 VmaDeviceMemoryBlock* const pBlock = m_Blocks[blockIndex]; in MakePoolAllocationsLost()
12442 for(uint32_t blockIndex = 0; blockIndex < m_Blocks.size(); ++blockIndex) in CheckCorruption()
12444 VmaDeviceMemoryBlock* const pBlock = m_Blocks[blockIndex]; in CheckCorruption()
12462 for(uint32_t blockIndex = 0; blockIndex < m_Blocks.size(); ++blockIndex) in AddStats()
12464 const VmaDeviceMemoryBlock* const pBlock = m_Blocks[blockIndex]; in AddStats()
12488 m_Blocks(VmaStlAllocator<BlockInfo*>(hAllocator->GetAllocationCallbacks())) in VmaDefragmentationAlgorithm_Generic()
12491 const size_t blockCount = m_pBlockVector->m_Blocks.size(); in VmaDefragmentationAlgorithm_Generic()
12496 pBlockInfo->m_pBlock = m_pBlockVector->m_Blocks[blockIndex]; in VmaDefragmentationAlgorithm_Generic()
12497 m_Blocks.push_back(pBlockInfo); in VmaDefragmentationAlgorithm_Generic()
12501 VMA_SORT(m_Blocks.begin(), m_Blocks.end(), BlockPointerLess()); in VmaDefragmentationAlgorithm_Generic()
12506 for(size_t i = m_Blocks.size(); i--; ) in ~VmaDefragmentationAlgorithm_Generic()
12508 vma_delete(m_hAllocator, m_Blocks[i]); in ~VmaDefragmentationAlgorithm_Generic()
12518 …BlockInfoVector::iterator it = VmaBinaryFindFirstNotLess(m_Blocks.begin(), m_Blocks.end(), pBlock,… in AddAllocation()
12519 if(it != m_Blocks.end() && (*it)->m_pBlock == pBlock) in AddAllocation()
12538 if(m_Blocks.empty()) in DefragmentRound()
12564 size_t srcBlockIndex = m_Blocks.size() - 1; in DefragmentRound()
12571 while(srcAllocIndex >= m_Blocks[srcBlockIndex]->m_Allocations.size()) in DefragmentRound()
12573 if(m_Blocks[srcBlockIndex]->m_Allocations.empty()) in DefragmentRound()
12588 srcAllocIndex = m_Blocks[srcBlockIndex]->m_Allocations.size() - 1; in DefragmentRound()
12592 BlockInfo* pSrcBlockInfo = m_Blocks[srcBlockIndex]; in DefragmentRound()
12603 BlockInfo* pDstBlockInfo = m_Blocks[dstBlockIndex]; in DefragmentRound()
12684 for(size_t i = 0; i < m_Blocks.size(); ++i) in CalcBlocksWithNonMovableCount()
12686 if(m_Blocks[i]->m_HasNonMovableAllocations) in CalcBlocksWithNonMovableCount()
12704 const size_t blockCount = m_Blocks.size(); in Defragment()
12707 BlockInfo* pBlockInfo = m_Blocks[blockIndex]; in Defragment()
12734 VMA_SORT(m_Blocks.begin(), m_Blocks.end(), BlockInfoCompareMoveDestination()); in Defragment()