2022-07-08 07:59:08 +00:00
|
|
|
const vk = @import("vulkan");
|
2022-07-11 08:17:47 +00:00
|
|
|
const CommandBuffer = @import("Command.zig").Buffer;
|
2022-07-08 07:59:08 +00:00
|
|
|
const QueueId = @import("queues.zig").QueueId;
|
|
|
|
|
2022-07-11 08:17:47 +00:00
|
|
|
cur_cmd_buf: [QueueId.count]CommandBuffer = undefined,
|
|
|
|
prev_cmd_buf: [QueueId.count]CommandBuffer = undefined,
|
|
|
|
last_submit_queue: ?QueueId = null,
|
|
|
|
most_recent_begin: ?QueueId = null,
|
2022-07-08 07:59:08 +00:00
|
|
|
|
|
|
|
const Self = @This();
|
|
|
|
|
2022-07-11 08:17:47 +00:00
|
|
|
pub var context: Self = Self{};
|
2022-07-08 07:59:08 +00:00
|
|
|
|
|
|
|
pub fn init() Self {
|
2022-07-11 08:17:47 +00:00
|
|
|
context = .{};
|
|
|
|
return context;
|
2022-07-08 07:59:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn deinit() void {
|
2022-07-11 08:17:47 +00:00
|
|
|
context = .{};
|
2022-07-08 07:59:08 +00:00
|
|
|
}
|