Function vectorType [src]

Prototype

pub fn vectorType( self: *Builder, kind: Type.Vector.Kind, len: u32, child: Type, ) Allocator.Error!Type

Parameters

self: *Builderkind: Type.Vector.Kindlen: u32child: Type

Source

pub fn vectorType( self: *Builder, kind: Type.Vector.Kind, len: u32, child: Type, ) Allocator.Error!Type { try self.ensureUnusedTypeCapacity(1, Type.Vector, 0); switch (kind) { inline else => |comptime_kind| return self.vectorTypeAssumeCapacity(comptime_kind, len, child), } }