{shaderexp,gpu}: fix command buffer coercion (#603)

This commit is contained in:
Ian Applegate 2022-10-31 10:17:50 -05:00 committed by GitHub
parent 6563739d1a
commit 839d60c940
Failed to generate hash of commit
2 changed files with 2 additions and 2 deletions

View file

@ -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();