forked from vv/efemra
1
0
Fork 0
efemra/src/rendering/vulkan/Context.zig

22 lines
478 B
Zig

const vk = @import("vulkan");
const CommandBuffer = @import("Command.zig").Buffer;
const QueueId = @import("queues.zig").QueueId;
cur_cmd_buf: [QueueId.count]CommandBuffer = undefined,
prev_cmd_buf: [QueueId.count]CommandBuffer = undefined,
last_submit_queue: ?QueueId = null,
most_recent_begin: ?QueueId = null,
const Self = @This();
pub var context: Self = Self{};
pub fn init() Self {
context = .{};
return context;
}
pub fn deinit() void {
context = .{};
}