add std.meta.Vector to replace @Vector

master
Tadeo Kondrak 2020-04-27 23:45:54 -06:00
parent 249938dde0
commit ee5b358d71
No known key found for this signature in database
GPG Key ID: D41E092CA43F1D8B
1 changed files with 9 additions and 0 deletions

View File

@ -650,3 +650,12 @@ pub fn IntType(comptime is_signed: bool, comptime bit_count: u16) type {
},
});
}
pub fn Vector(comptime len: u32, comptime child: type) type {
return @Type(TypeInfo{
.Vector = .{
.len = len,
.child = child,
},
});
}