{vulkan,examples}: fix descriptor set bug

This commit is contained in:
Ali Cheraghi 2024-07-13 05:42:16 +03:30 committed by Stephen Gutekanst
parent 266e7a548b
commit 0023ab14fb
6 changed files with 45 additions and 48 deletions

View file

@ -104,6 +104,8 @@ fn update(core: *mach.Core.Mod, game: *Mod) !void {
defer command.release();
core.state().queue.submit(&[_]*gpu.CommandBuffer{command});
core.schedule(.present_frame);
// update the window title every second
if (game.state().title_timer.read() >= 1.0) {
game.state().title_timer.reset();