mirror of
https://github.com/ziglang/zig.git
synced 2025-12-15 02:33:07 +00:00
spirv: Assemble OpTypeRuntimeArray.
This commit is contained in:
parent
03123916e5
commit
07c04bcd83
@ -357,6 +357,15 @@ fn processTypeInstruction(self: *Assembler) !AsmValue {
|
|||||||
// and so some consideration must be taken when entering this in the type system.
|
// and so some consideration must be taken when entering this in the type system.
|
||||||
return self.todo("process OpTypeArray", .{});
|
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: {
|
.OpTypePointer => blk: {
|
||||||
const storage_class: StorageClass = @enumFromInt(operands[1].value);
|
const storage_class: StorageClass = @enumFromInt(operands[1].value);
|
||||||
const child_type = try self.resolveRefId(operands[2].ref_id);
|
const child_type = try self.resolveRefId(operands[2].ref_id);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user