math: use extern struct for guaranteed memory layout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0538698bda
commit
40a1ba0431
3 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ pub fn Mat(
|
|||
comptime n_rows: usize,
|
||||
comptime Vector: type,
|
||||
) type {
|
||||
return struct {
|
||||
return extern struct {
|
||||
v: [cols]Vec,
|
||||
|
||||
/// The number of columns, e.g. Mat3x4.cols == 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue