fixing command buffer reset on begin
Some checks failed
Build / build (push) Successful in 1m57s
Test / build_and_test (push) Failing after 39m36s

This commit is contained in:
2026-03-20 13:15:47 +01:00
parent d417f5d3bd
commit 7ba64de411
2 changed files with 4 additions and 3 deletions

View File

@@ -59,8 +59,8 @@
.lazy = true, .lazy = true,
}, },
.SPIRV_Interpreter = .{ .SPIRV_Interpreter = .{
.url = "git+https://git.kbz8.me/kbz_8/SPIRV-Interpreter#e8a08d78851dd07e72de7b40821cd2af10f38866", .url = "git+https://git.kbz8.me/kbz_8/SPIRV-Interpreter#fe47277468c694b10153282761efd3d6f90d8f6a",
.hash = "SPIRV_Interpreter-0.0.1-ajmpn9DJAwAaQ_vqdY_c-GX__VX9YQZ5viIBxsgPUlBk", .hash = "SPIRV_Interpreter-0.0.1-ajmpn2u-AwAPdrXzLzxHPezx3Kkb63hkecdY0oPEJ2ad",
}, },
}, },

View File

@@ -91,7 +91,8 @@ pub inline fn begin(self: *Self, info: *const vk.CommandBufferBeginInfo) VkError
if (!self.pool.flags.reset_command_buffer_bit) { if (!self.pool.flags.reset_command_buffer_bit) {
self.transitionState(.Recording, &.{.Initial}) catch return VkError.ValidationFailed; self.transitionState(.Recording, &.{.Initial}) catch return VkError.ValidationFailed;
} else { } else {
self.transitionState(.Recording, &.{ .Initial, .Executable, .Invalid }) catch return VkError.ValidationFailed; try self.reset(.{});
self.transitionState(.Recording, &.{ .Initial, .Recording, .Executable, .Invalid }) catch return VkError.ValidationFailed;
} }
try self.dispatch_table.begin(self, info); try self.dispatch_table.begin(self, info);
self.begin_info = info.*; self.begin_info = info.*;