Better debug vis for push pools

This commit is contained in:
Henrik Rydgård committed 2023-03-15 01:25:03 +01:00
1 parent 9fcd6d6612
commit c8b25e50b0
3 files changed
+29 -31

No files matched your search

+3 -3
View File
@@ -78,10 +78,10 @@ void DrawAllocatorVis(UIContext *ui, GPUInterface *gpu) {
auto managers = GetActiveVulkanMemoryManagers();
std::sort(managers.begin(), managers.end(), comparePushBufferNames);
char buffer[512];
for (auto manager : managers) {
str << " " << manager->Name() << " "
<< NiceSizeFormat(manager->GetTotalCapacity()) << ", used: "
<< NiceSizeFormat(manager->GetTotalSize()) << std::endl;
manager->GetDebugString(buffer, sizeof(buffer));
str << " " << buffer << std::endl;
}
const int padding = 10 + System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_LEFT);