vulkan buffer destroyer fix

This commit is contained in:
Turánszki János
2026-02-11 08:07:31 +01:00
parent 69701fdf88
commit c2bcd5f879
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -703,7 +703,7 @@ namespace vulkan_internal
}
else
{
allocationhandler->destroyer_bindlessStorageTexelBuffers.push_back(std::make_pair(x.index, framecount));
allocationhandler->destroyer_bindlessStorageBuffers.push_back(std::make_pair(x.index, framecount));
}
}
subresources_srv.clear();
+2 -2
View File
@@ -926,6 +926,8 @@ namespace wi::graphics
// Deferred destroy of resources that the GPU is already finished with:
void Update(uint64_t FRAMECOUNT, uint32_t BUFFERCOUNT)
{
std::scoped_lock lck(destroylocker);
const auto destroy = [&](auto&& queue, auto&& handler) {
while (!queue.empty()) {
if (queue.front().second + BUFFERCOUNT < FRAMECOUNT)
@@ -943,8 +945,6 @@ namespace wi::graphics
framecount = FRAMECOUNT;
std::scoped_lock lck(destroylocker);
destroy(destroyer_allocations, [&](auto& item) {
vmaFreeMemory(allocator, item);
});
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 72;
// minor bug fixes, alterations, refactors, updates
const int revision = 32;
const int revision = 33;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);