working on queues

This commit is contained in:
2025-11-09 21:06:33 +01:00
parent b4b88ac2db
commit b2d964c96a
10 changed files with 84 additions and 39 deletions

View File

@@ -22,8 +22,12 @@ pub fn init(callbacks: ?*const vk.AllocationCallbacks, scope: vk.SystemAllocatio
pub fn allocator(self: *const Self) Allocator {
if (self.callbacks == null) {
return std.heap.c_allocator; // TODO: fallback on a better allocator
return .{
.ptr = @constCast(self),
.vtable = std.heap.c_allocator.vtable,
};
}
return .{
.ptr = @constCast(self),
.vtable = &.{