From 839d60c940e74b4d378ad23cd7a3885742457b16 Mon Sep 17 00:00:00 2001 From: Ian Applegate <1159529+linuxy@users.noreply.github.com> Date: Mon, 31 Oct 2022 10:17:50 -0500 Subject: [PATCH] {shaderexp,gpu}: fix command buffer coercion (#603) --- libs/gpu/examples/main.zig | 2 +- shaderexp/main.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/gpu/examples/main.zig b/libs/gpu/examples/main.zig index 4556c8e2..23e5ecbe 100644 --- a/libs/gpu/examples/main.zig +++ b/libs/gpu/examples/main.zig @@ -162,7 +162,7 @@ fn frame(params: FrameParams) !void { var command = encoder.finish(null); encoder.release(); - params.queue.submit(&.{command}); + params.queue.submit(&[_]*gpu.CommandBuffer{command}); command.release(); pl.swap_chain.?.present(); back_buffer_view.release(); diff --git a/shaderexp/main.zig b/shaderexp/main.zig index 3851ff8a..0866d893 100755 --- a/shaderexp/main.zig +++ b/shaderexp/main.zig @@ -139,7 +139,7 @@ pub fn update(app: *App, core: *mach.Core) !void { var command = encoder.finish(null); encoder.release(); - app.queue.submit(&.{command}); + app.queue.submit(&[_]*gpu.CommandBuffer{command}); command.release(); core.swap_chain.?.present(); back_buffer_view.release();