mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 04:08:37 +01:00
Debug visualization for the Vulkan memory allocator. Shows some interesting behaviour.
This commit is contained in:
1 parent
2ae2dd7d40
commit
c60c8ed68a
18 files changed
+168
-15
No files matched your search
@@ -293,6 +293,13 @@ int VulkanDeviceAllocator::ComputeUsagePercent() const {
|
||||
return blockSum == 0 ? 0 : 100 * blocksUsed / blockSum;
|
||||
}
|
||||
|
||||
std::vector<uint8_t> VulkanDeviceAllocator::GetSlabUsage(int slabIndex) const {
|
||||
if (slabIndex < 0 || slabIndex >= (int)slabs_.size())
|
||||
return std::vector<uint8_t>();
|
||||
const Slab &slab = slabs_[slabIndex];
|
||||
return slab.usage;
|
||||
}
|
||||
|
||||
void VulkanDeviceAllocator::Free(VkDeviceMemory deviceMemory, size_t offset) {
|
||||
assert(!destroyed_);
|
||||
|
||||
|
||||
Reference in new issue
Block a user