Adding Pipeline statistics queries

This commit is contained in:
Dynamitos committed 2024-06-15 21:47:20 +02:00
1 parent 86c179e2e7
commit 0fd331b3b5
30 files changed
+344 -95

No files matched your search

+1 -1
View File
@@ -160,7 +160,7 @@ void BufferAllocation::readContents(uint64 regionOffset, uint64 regionSize, void
uint8* data;
VK_CHECK(vmaMapMemory(graphics->getAllocator(), staging->allocation, (void**)&data));
std::memcpy(buffer, data + regionOffset, regionSize);
std::memcpy(ptr, data + regionOffset, regionSize);
VK_CHECK(vmaFlushAllocation(graphics->getAllocator(), staging->allocation, regionOffset, regionSize));
vmaUnmapMemory(graphics->getAllocator(), staging->allocation);
graphics->getDestructionManager()->queueResourceForDestruction(std::move(staging));