diff --git a/src/soft/SoftCommandBuffer.zig b/src/soft/SoftCommandBuffer.zig index 2a114da..62c3e13 100644 --- a/src/soft/SoftCommandBuffer.zig +++ b/src/soft/SoftCommandBuffer.zig @@ -106,8 +106,9 @@ pub fn execute(self: *Self, device: *ExecutionDevice) void { } pub fn begin(interface: *Interface, _: *const vk.CommandBufferBeginInfo) VkError!void { - // No-op - _ = interface; + const self: *Self = @alignCast(@fieldParentPtr("interface", interface)); + self.commands.clearAndFree(self.command_allocator.allocator()); + _ = self.command_allocator.reset(.free_all); } pub fn end(interface: *Interface) VkError!void {