adding some opcodes
Build / build (push) Successful in 1m59s
Test / build (push) Successful in 8m50s

This commit is contained in:
2026-03-24 04:34:04 +01:00
parent d1bf1c23f2
commit a503f54e43
5 changed files with 177 additions and 55 deletions
+1 -2
View File
@@ -220,11 +220,10 @@ pub const Value = union(Type) {
},
.Structure => |s| .{
.Structure = blk: {
const offsets = allocator.dupe(?SpvWord, s.offsets) catch return RuntimeError.OutOfMemory;
const values = allocator.dupe(Self, s.values) catch return RuntimeError.OutOfMemory;
for (values, s.values) |*new_value, value| new_value.* = try value.dupe(allocator);
break :blk .{
.offsets = offsets,
.offsets = allocator.dupe(?SpvWord, s.offsets) catch return RuntimeError.OutOfMemory,
.values = values,
};
},