working on queues

This commit is contained in:
2025-11-10 21:19:37 +01:00
parent 4c2963f109
commit 6215a20ed6
7 changed files with 50 additions and 7 deletions

View File

@@ -21,13 +21,13 @@ pub const DispatchTable = struct {
waitIdle: *const fn (*Self) VkError!void,
};
pub fn init(allocator: std.mem.Allocator, device: *const Device, index: u32, info: vk.DeviceQueueCreateInfo) VkError!Self {
pub fn init(allocator: std.mem.Allocator, device: *const Device, index: u32, family_index: u32, flags: vk.DeviceQueueCreateFlags) VkError!Self {
_ = allocator;
return .{
.owner = device,
.family_index = info.queueFamilyIndex,
.family_index = family_index,
.index = index,
.flags = info.flags,
.flags = flags,
.dispatch_table = undefined,
};
}