windows: translate and dispatch messages each frame

This commit is contained in:
foxnne 2024-12-01 14:17:03 -06:00 committed by Emi Gutekanst
parent 5bcdcadb74
commit 3aee6995d7
2 changed files with 7 additions and 238 deletions

View file

@ -162,6 +162,7 @@ pub fn init(core: *Core) !void {
pub fn initWindow(core: *Core, window_id: mach.ObjectID) !void {
var core_window = core.windows.getValue(window_id);
defer core.windows.setValueRaw(window_id, core_window);
core_window.instance = gpu.createInstance(null) orelse {
log.err("failed to create GPU instance", .{});
std.process.exit(1);