gpu: make Queue.submit API use a slice helper

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-10 22:06:41 -07:00 committed by Stephen Gutekanst
parent 7c09b27905
commit d32c019b59
3 changed files with 3 additions and 4 deletions

View file

@ -174,7 +174,7 @@ fn frame(params: FrameParams) !void {
var command = encoder.finish(null);
encoder.release();
params.queue.submit(1, &[_]*gpu.CommandBuffer{command});
params.queue.submit(&.{command});
command.release();
pl.swap_chain.?.present();
back_buffer_view.release();