context
This commit is contained in:
parent
5b541874fd
commit
352da70aa4
|
@ -0,0 +1,20 @@
|
||||||
|
const vk = @import("vulkan");
|
||||||
|
const CommandBuffer = @import("Command.zig").CommandBuffer;
|
||||||
|
const QueueId = @import("queues.zig").QueueId;
|
||||||
|
|
||||||
|
cur_cmd_buf: [QueueId.count]CommandBuffer,
|
||||||
|
prev_cmd_buf: [QueueId.count]CommandBuffer,
|
||||||
|
last_submit_queue: QueueId,
|
||||||
|
most_recent_begin: QueueId,
|
||||||
|
|
||||||
|
const Self = @This();
|
||||||
|
|
||||||
|
pub const context: Self = Self{};
|
||||||
|
|
||||||
|
pub fn init() Self {
|
||||||
|
context.* = .{};
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn deinit() void {
|
||||||
|
context.* = .{};
|
||||||
|
}
|
|
@ -7,7 +7,7 @@ const Device = @import("device.zig").Device;
|
||||||
const Memory = @import("memory.zig").Memory;
|
const Memory = @import("memory.zig").Memory;
|
||||||
const Framebuffer = @import("framebuffer.zig").Framebuffer;
|
const Framebuffer = @import("framebuffer.zig").Framebuffer;
|
||||||
const Swapchain = @import("Swapchain.zig");
|
const Swapchain = @import("Swapchain.zig");
|
||||||
const Context = @import("context.zig").Context;
|
const Context = @import("Context.zig");
|
||||||
const MainPass = @import("main_pass.zig").MainPass;
|
const MainPass = @import("main_pass.zig").MainPass;
|
||||||
const Command = @import("Command.zig");
|
const Command = @import("Command.zig");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue