mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
spirv: Assemble OpTypeRuntimeArray.
This commit is contained in:
parent
03123916e5
commit
07c04bcd83
1 changed files with 9 additions and 0 deletions
|
|
@ -357,6 +357,15 @@ fn processTypeInstruction(self: *Assembler) !AsmValue {
|
|||
// and so some consideration must be taken when entering this in the type system.
|
||||
return self.todo("process OpTypeArray", .{});
|
||||
},
|
||||
.OpTypeRuntimeArray => blk: {
|
||||
const element_type = try self.resolveRefId(operands[1].ref_id);
|
||||
const result_id = self.spv.allocId();
|
||||
try section.emit(self.spv.gpa, .OpTypeRuntimeArray, .{
|
||||
.id_result = result_id,
|
||||
.element_type = element_type,
|
||||
});
|
||||
break :blk result_id;
|
||||
},
|
||||
.OpTypePointer => blk: {
|
||||
const storage_class: StorageClass = @enumFromInt(operands[1].value);
|
||||
const child_type = try self.resolveRefId(operands[2].ref_id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue