windows: translate and dispatch messages each frame
This commit is contained in:
parent
5bcdcadb74
commit
3aee6995d7
2 changed files with 7 additions and 238 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue