{shaderexp,gpu}: fix command buffer coercion (#603)
This commit is contained in:
parent
6563739d1a
commit
839d60c940
2 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ fn frame(params: FrameParams) !void {
|
||||||
var command = encoder.finish(null);
|
var command = encoder.finish(null);
|
||||||
encoder.release();
|
encoder.release();
|
||||||
|
|
||||||
params.queue.submit(&.{command});
|
params.queue.submit(&[_]*gpu.CommandBuffer{command});
|
||||||
command.release();
|
command.release();
|
||||||
pl.swap_chain.?.present();
|
pl.swap_chain.?.present();
|
||||||
back_buffer_view.release();
|
back_buffer_view.release();
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@ pub fn update(app: *App, core: *mach.Core) !void {
|
||||||
var command = encoder.finish(null);
|
var command = encoder.finish(null);
|
||||||
encoder.release();
|
encoder.release();
|
||||||
|
|
||||||
app.queue.submit(&.{command});
|
app.queue.submit(&[_]*gpu.CommandBuffer{command});
|
||||||
command.release();
|
command.release();
|
||||||
core.swap_chain.?.present();
|
core.swap_chain.?.present();
|
||||||
back_buffer_view.release();
|
back_buffer_view.release();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue