adding VK_KHR_get_physical_device_properties2 and bug fixes

This commit is contained in:
2025-12-17 17:39:20 +01:00
parent 48af5e31f0
commit 64af182ecc
13 changed files with 290 additions and 72 deletions

View File

@@ -23,12 +23,20 @@ pub fn get(self: *Self) *Manager {
}
pub fn deinit(self: *Self) void {
self.mutex.lock();
defer self.mutex.unlock();
{
self.mutex.lock();
defer self.mutex.unlock();
var it = self.managers.iterator();
while (it.next()) |entry| {
entry.value_ptr.deinit();
if (self.managers.getPtr(std.Thread.getCurrentId())) |manager| {
manager.deinit();
_ = self.managers.orderedRemove(std.Thread.getCurrentId());
}
}
if (self.managers.count() == 0) {
self.mutex.lock();
self.mutex.unlock();
self.managers.deinit(self.allocator.allocator());
self.* = .init;
}
self.managers.deinit(self.allocator.allocator());
}