adding stride to regular arrays
Build / build (push) Successful in 6m0s
Test / build (push) Successful in 11m19s

This commit is contained in:
2026-03-26 01:10:29 +01:00
parent a503f54e43
commit 3c7054fae0
3 changed files with 60 additions and 24 deletions
+2 -2
View File
@@ -172,9 +172,9 @@ pub fn writeDescriptorSet(self: *const Self, input: []u8, set: SpvWord, binding:
const value = &self.results[self.mod.bindings[set][binding]].variant.?.Variable.value;
switch (value.*) {
.Array => |arr| {
if (descriptor_index >= arr.len)
if (descriptor_index >= arr.values.len)
return RuntimeError.NotFound;
_ = try arr[descriptor_index].write(input);
_ = try arr.values[descriptor_index].write(input);
},
else => {
if (descriptor_index != 0)