We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0312391 + 07c04bc commit aa8aa66Copy full SHA for aa8aa66
src/codegen/spirv/Assembler.zig
@@ -357,6 +357,15 @@ fn processTypeInstruction(self: *Assembler) !AsmValue {
357
// and so some consideration must be taken when entering this in the type system.
358
return self.todo("process OpTypeArray", .{});
359
},
360
+ .OpTypeRuntimeArray => blk: {
361
+ const element_type = try self.resolveRefId(operands[1].ref_id);
362
+ const result_id = self.spv.allocId();
363
+ try section.emit(self.spv.gpa, .OpTypeRuntimeArray, .{
364
+ .id_result = result_id,
365
+ .element_type = element_type,
366
+ });
367
+ break :blk result_id;
368
+ },
369
.OpTypePointer => blk: {
370
const storage_class: StorageClass = @enumFromInt(operands[1].value);
371
const child_type = try self.resolveRefId(operands[2].ref_id);
0 commit comments