mat3x4f
Function
Builds a mat3x4f, the same type as mat3x4 under WGSL's predeclared alias, in the same four ways: from 3 vec4 columns, from 12 components column by column, from a larger matrix by truncation, or with no arguments for the zero matrix (§40).
The signature and the sentence under each name are the compiler's own text at commit 26de7be8.
Syntax
declare function mat3x4f(): mat3x4declare function mat3x4f(c0: vec4, c1: vec4, c2: vec4): mat3x4declare function mat3x4f(e0: number, e1: number, e2: number, e3: number, e4: number, e5: number, e6: number, e7: number, e8: number, e9: number, e10: number, e11: number): mat3x4declare function mat3x4f(m: mat3x4): mat3x4declare function mat3x4f(m: mat4x4): mat3x4A number in a parameter or a return position is the scalar slot. The ambient file declares a GPU scalar as a branded number whose brand is optional, so a literal and any branded scalar both fill it.
type f32 = number & { readonly [f32Tag]?: true }
A declaration you write still needs a width, and a bare number on a field or a parameter is refused; the TypeScript constructs page carries that row with the compiler's own message.
Parameters
-
c0optionalvec4 -
e0optionalnumber -
moptionalmat3x4mat4x4 -
c1optionalvec4 -
e1optionalnumber -
c2optionalvec4 -
e2optionalnumber -
e3optionalnumber -
e4optionalnumber -
e5optionalnumber -
e6optionalnumber -
e7optionalnumber -
e8optionalnumber -
e9optionalnumber -
e10optionalnumber -
e11optionalnumber