Lines Matching refs:pBlock
5914 void Remove(VmaDeviceMemoryBlock* pBlock);
5931 VmaDeviceMemoryBlock* pBlock,
11327 const VmaDeviceMemoryBlock* const pBlock = m_Blocks[blockIndex]; in GetPoolStats() local
11328 VMA_ASSERT(pBlock); in GetPoolStats()
11329 VMA_HEAVY_ASSERT(pBlock->Validate()); in GetPoolStats()
11330 pBlock->m_pMetadata->AddPoolStats(*pStats); in GetPoolStats()
11581 VmaDeviceMemoryBlock* const pBlock = m_Blocks[newBlockIndex]; in AllocatePage() local
11582 VMA_ASSERT(pBlock->m_pMetadata->GetSize() >= size); in AllocatePage()
11585 pBlock, in AllocatePage()
11771 VmaDeviceMemoryBlock* pBlock = hAllocation->GetBlock(); in Free() local
11775 …VkResult res = pBlock->ValidateMagicValueAroundAllocation(m_hAllocator, hAllocation->GetOffset(), … in Free()
11781 pBlock->Unmap(m_hAllocator, 1); in Free()
11784 pBlock->m_pMetadata->Free(hAllocation); in Free()
11785 VMA_HEAVY_ASSERT(pBlock->Validate()); in Free()
11790 if(pBlock->m_pMetadata->IsEmpty()) in Free()
11795 pBlockToDelete = pBlock; in Free()
11796 Remove(pBlock); in Free()
11844 void VmaBlockVector::Remove(VmaDeviceMemoryBlock* pBlock) in Remove() argument
11848 if(m_Blocks[blockIndex] == pBlock) in Remove()
11874 VmaDeviceMemoryBlock* pBlock, in AllocateFromBlock() argument
11891 if(pBlock->m_pMetadata->CreateAllocationRequest( in AllocateFromBlock()
11908 VkResult res = pBlock->Map(m_hAllocator, 1, VMA_NULL); in AllocateFromBlock()
11916 if(pBlock->m_pMetadata->IsEmpty()) in AllocateFromBlock()
11922 pBlock->m_pMetadata->Alloc(currRequest, suballocType, size, isUpperAddress, *pAllocation); in AllocateFromBlock()
11925 pBlock, in AllocateFromBlock()
11932 VMA_HEAVY_ASSERT(pBlock->Validate()); in AllocateFromBlock()
11940 … VkResult res = pBlock->WriteMagicValueAroundAllocation(m_hAllocator, currRequest.offset, size); in AllocateFromBlock()
11963 VmaDeviceMemoryBlock* const pBlock = vma_new(m_hAllocator, VmaDeviceMemoryBlock)(m_hAllocator); in CreateBlock() local
11964 pBlock->Init( in CreateBlock()
11972 m_Blocks.push_back(pBlock); in CreateBlock()
12018 VmaDeviceMemoryBlock* pBlock = m_Blocks[blockIndex]; in ApplyDefragmentationMovesCpu() local
12021 currBlockInfo.pMappedData = pBlock->GetMappedData(); in ApplyDefragmentationMovesCpu()
12025 pDefragCtx->res = pBlock->Map(m_hAllocator, 1, &currBlockInfo.pMappedData); in ApplyDefragmentationMovesCpu()
12094 VmaDeviceMemoryBlock* pBlock = m_Blocks[blockIndex]; in ApplyDefragmentationMovesCpu() local
12095 pBlock->Unmap(m_hAllocator, 1); in ApplyDefragmentationMovesCpu()
12130 VmaDeviceMemoryBlock* pBlock = m_Blocks[blockIndex]; in ApplyDefragmentationMovesGpu() local
12133 bufCreateInfo.size = pBlock->m_pMetadata->GetSize(); in ApplyDefragmentationMovesGpu()
12139 … m_hAllocator->m_hDevice, currBlockCtx.hBuffer, pBlock->GetDeviceMemory(), 0); in ApplyDefragmentationMovesGpu()
12181 VmaDeviceMemoryBlock* pBlock = m_Blocks[blockIndex]; in FreeEmptyBlocks() local
12182 if(pBlock->m_pMetadata->IsEmpty()) in FreeEmptyBlocks()
12189 pDefragmentationStats->bytesFreed += pBlock->m_pMetadata->GetSize(); in FreeEmptyBlocks()
12193 pBlock->Destroy(m_hAllocator); in FreeEmptyBlocks()
12194 vma_delete(m_hAllocator, pBlock); in FreeEmptyBlocks()
12405 VmaDeviceMemoryBlock* const pBlock = m_Blocks[i]; in IsBufferImageGranularityConflictPossible() local
12407 VmaBlockMetadata_Generic* const pMetadata = (VmaBlockMetadata_Generic*)pBlock->m_pMetadata; in IsBufferImageGranularityConflictPossible()
12424 VmaDeviceMemoryBlock* const pBlock = m_Blocks[blockIndex]; in MakePoolAllocationsLost() local
12425 VMA_ASSERT(pBlock); in MakePoolAllocationsLost()
12426 …lostAllocationCount += pBlock->m_pMetadata->MakeAllocationsLost(currentFrameIndex, m_FrameInUseCou… in MakePoolAllocationsLost()
12444 VmaDeviceMemoryBlock* const pBlock = m_Blocks[blockIndex]; in CheckCorruption() local
12445 VMA_ASSERT(pBlock); in CheckCorruption()
12446 VkResult res = pBlock->CheckCorruption(m_hAllocator); in CheckCorruption()
12464 const VmaDeviceMemoryBlock* const pBlock = m_Blocks[blockIndex]; in AddStats() local
12465 VMA_ASSERT(pBlock); in AddStats()
12466 VMA_HEAVY_ASSERT(pBlock->Validate()); in AddStats()
12468 pBlock->m_pMetadata->CalcAllocationStatInfo(allocationStatInfo); in AddStats()
12517 VmaDeviceMemoryBlock* pBlock = hAlloc->GetBlock(); in AddAllocation() local
12518 …terator it = VmaBinaryFindFirstNotLess(m_Blocks.begin(), m_Blocks.end(), pBlock, BlockPointerLess(… in AddAllocation()
12519 if(it != m_Blocks.end() && (*it)->m_pBlock == pBlock) in AddAllocation()
15195 VmaDeviceMemoryBlock* const pBlock = hAllocation->GetBlock(); in Map() local
15197 VkResult res = pBlock->Map(this, 1, (void**)&pBytes); in Map()
15219 VmaDeviceMemoryBlock* const pBlock = hAllocation->GetBlock(); in Unmap() local
15221 pBlock->Unmap(this, 1); in Unmap()
15246 VmaDeviceMemoryBlock* pBlock = hAllocation->GetBlock(); in BindBufferMemory() local
15247 …VMA_ASSERT(pBlock && "Binding buffer to allocation that doesn't belong to any block. Is the alloca… in BindBufferMemory()
15248 res = pBlock->BindBufferMemory(this, hAllocation, hBuffer); in BindBufferMemory()
15271 VmaDeviceMemoryBlock* pBlock = hAllocation->GetBlock(); in BindImageMemory() local
15272 …VMA_ASSERT(pBlock && "Binding image to allocation that doesn't belong to any block. Is the allocat… in BindImageMemory()
15273 res = pBlock->BindImageMemory(this, hAllocation, hImage); in BindImageMemory()