adding command pool base

This commit is contained in:
2025-11-12 22:50:41 +01:00
parent d52d6f3ea7
commit e08fba24a6
17 changed files with 177 additions and 71 deletions

View File

@@ -7,7 +7,7 @@ const Device = @import("Device.zig");
const Self = @This();
pub const ObjectType: vk.ObjectType = .fence;
owner: *const Device,
owner: *Device,
flags: vk.FenceCreateFlags,
vtable: *const VTable,
@@ -20,7 +20,8 @@ pub const VTable = struct {
wait: *const fn (*Self, u64) VkError!void,
};
pub fn init(device: *const Device, info: *const vk.FenceCreateInfo) VkError!Self {
pub fn init(device: *Device, allocator: std.mem.Allocator, info: *const vk.FenceCreateInfo) VkError!Self {
_ = allocator;
return .{
.owner = device,
.flags = info.flags,