More wrappers, more cleanup

This commit is contained in:
2025-12-04 00:27:10 +01:00
parent be4ae4f1a7
commit d885fbea43
16 changed files with 419 additions and 368 deletions

View File

@@ -3,7 +3,7 @@ const std = @import("std");
const vk = @import("vulkan");
const CommandBuffer = @import("CommandBuffer.zig").CommandBuffer;
const CommandBuffer = @import("CommandBuffer.zig");
const Engine = @import("Engine.zig");
const QSM = @import("QueueSharingMode.zig");
const Texture = @import("Texture.zig");
@@ -271,7 +271,7 @@ pub fn recreate(self: *Swapchain, engine: *Engine) !void {
}
pub const PresentInfo = struct {
command_buffer: CommandBuffer(.graphics, .transient),
command_buffer: CommandBuffer,
wait_semaphores: []const WaitSemaphore = &.{},
};
@@ -411,7 +411,7 @@ const SwapchainImage = struct {
semaphore_render_finished: vk.Semaphore,
fence: vk.Fence,
framebuffer: vk.Framebuffer,
command_buffer: ?CommandBuffer(.graphics, .transient),
command_buffer: ?CommandBuffer,
const InitProps = struct {
image: vk.Image,