spirv: opaque types

This commit is contained in:
Robin Voetter
2023-09-23 01:31:07 +02:00
parent a241cf90d6
commit 4e22f811e7
2 changed files with 32 additions and 0 deletions

View File

@@ -1215,6 +1215,13 @@ pub const DeclGen = struct {
try self.type_map.put(self.gpa, ty.toIntern(), .{ .ty_ref = ty_ref });
return ty_ref;
},
.Opaque => {
return try self.spv.resolve(.{
.opaque_type = .{
.name = .none, // TODO
},
});
},
.Null,
.Undefined,