obj: Fix doc comment and update example to build
This commit is contained in:
parent
0476999dc4
commit
f58cb270b1
2 changed files with 3 additions and 3 deletions
|
|
@ -37,7 +37,7 @@ pub fn init(
|
||||||
|
|
||||||
// Color target describes e.g. the pixel format of the window we are rendering to.
|
// Color target describes e.g. the pixel format of the window we are rendering to.
|
||||||
const color_target = gpu.ColorTargetState{
|
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,
|
.blend = &blend,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -346,9 +346,9 @@ pub fn Objects(comptime T: type, options: ObjectsOptions) type {
|
||||||
return false;
|
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 {
|
pub fn setUpdated(objs: *@This(), id: ObjectID, field_name: anytype, value: bool) void {
|
||||||
if (options.track_fields) {
|
if (options.track_fields) {
|
||||||
const unpacked = objs.validateAndUnpack(id, "setUpdated");
|
const unpacked = objs.validateAndUnpack(id, "setUpdated");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue