gpu: make Queue.submit API use a slice helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
7c09b27905
commit
d32c019b59
3 changed files with 3 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue