{gfx,examples}: use core.state().queue

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-04-21 22:57:40 -07:00 committed by Stephen Gutekanst
parent 68677b3448
commit 431e0dbbe1
6 changed files with 6 additions and 6 deletions

View file

@ -364,7 +364,7 @@ fn preRender(sprite_pipeline: *Mod, core: *mach.Core.Mod) void {
var command = encoder.finish(&.{ .label = label });
defer command.release();
mach.core.queue.submit(&[_]*gpu.CommandBuffer{command});
core.state().queue.submit(&[_]*gpu.CommandBuffer{command});
}
fn render(sprite_pipeline: *Mod) !void {

View file

@ -389,7 +389,7 @@ fn preRender(text_pipeline: *Mod, core: *mach.Core.Mod) void {
var command = encoder.finish(&.{ .label = label });
defer command.release();
mach.core.queue.submit(&[_]*gpu.CommandBuffer{command});
core.state().queue.submit(&[_]*gpu.CommandBuffer{command});
}
fn render(text_pipeline: *Mod) !void {