adding lots of unit tests, improving image sampling, adding image sampling deref
Build / build (push) Successful in 1m24s
Test / build (push) Successful in 9m42s

This commit is contained in:
2026-06-12 23:05:16 +02:00
parent 089a33981c
commit c7320325fd
18 changed files with 1714 additions and 147 deletions
+8 -2
View File
@@ -478,6 +478,12 @@ pub fn getMemberCounts(self: *const Self) usize {
}
pub inline fn flushPtr(self: *Self, allocator: std.mem.Allocator) RuntimeError!void {
const value = self.getValue() catch return;
try value.flushPtr(allocator);
if (self.variant) |*variant| switch (variant.*) {
.Variable => |*v| try v.value.flushPtr(allocator),
.AccessChain => |*a| {
if (!std.mem.allEqual(u8, std.mem.asBytes(&a.value), 0xaa))
try a.value.flushPtr(allocator);
},
else => {},
};
}