adding lots of unit tests, improving image sampling, adding image sampling deref
This commit is contained in:
+8
-2
@@ -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 => {},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user