From f58cb270b1f95e9016093d25624ec46be8c24656 Mon Sep 17 00:00:00 2001 From: foxnne Date: Wed, 27 Nov 2024 08:26:24 -0600 Subject: [PATCH] obj: Fix doc comment and update example to build --- examples/core-custom-entrypoint/App.zig | 2 +- src/module.zig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/core-custom-entrypoint/App.zig b/examples/core-custom-entrypoint/App.zig index 03752f34..4de84956 100644 --- a/examples/core-custom-entrypoint/App.zig +++ b/examples/core-custom-entrypoint/App.zig @@ -37,7 +37,7 @@ pub fn init( // Color target describes e.g. the pixel format of the window we are rendering to. const color_target = gpu.ColorTargetState{ - .format = core.windows.get(core.main_window).?.framebuffer_format, + .format = core.windows.get(core.main_window, .framebuffer_format).?, .blend = &blend, }; diff --git a/src/module.zig b/src/module.zig index c9e21080..7a69ecab 100644 --- a/src/module.zig +++ b/src/module.zig @@ -346,9 +346,9 @@ pub fn Objects(comptime T: type, options: ObjectsOptions) type { return false; } - /// Returns true if the field has an `updated` bit set in internal. + /// Sets an internal bit for the field indicating it has been updated. /// - /// Internal functions may set this bit back to false. + /// Internal functions may use this as a signal. pub fn setUpdated(objs: *@This(), id: ObjectID, field_name: anytype, value: bool) void { if (options.track_fields) { const unpacked = objs.validateAndUnpack(id, "setUpdated");