gpu: fix Queue.submit commands parameter
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e26a2858ed
commit
1c5c23f101
3 changed files with 24 additions and 10 deletions
|
|
@ -211,12 +211,11 @@ fn frame(params: FrameParams) !void {
|
|||
pass.end();
|
||||
pass.release();
|
||||
|
||||
var commands = encoder.finish(null);
|
||||
var command = encoder.finish(null);
|
||||
encoder.release();
|
||||
|
||||
const buf = gpu.CommandBuffer{ .ptr = &commands, .vtable = undefined };
|
||||
params.queue.submit(1, &buf);
|
||||
commands.release();
|
||||
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