Skip to content

Commit e3acc34

Browse files
committed
Matrix4x3: verify abi layout in difftest
1 parent d9e7f1e commit e3acc34

File tree

1 file changed

+2
-0
lines changed
  • tests/difftests/tests/lang/abi/vector_layout/cpu/src

1 file changed

+2
-0
lines changed

tests/difftests/tests/lang/abi/vector_layout/cpu/src/layout.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use core::mem::offset_of;
22
use core::ops::Range;
33
use experiments::*;
44
use spirv_std::glam::*;
5+
use spirv_std::matrix::Matrix4x3;
56

67
pub struct BumpAlloc(usize);
78

@@ -61,6 +62,7 @@ pub fn eval_layouts(gid: u32, out: &mut [u32]) {
6162
0x11 => write_layout!(out, offset, Struct0x11(a, b)),
6263
0x12 => write_layout!(out, offset, Struct0x12(a, b, c, d, e)),
6364
0x13 => write_layout!(out, offset, Struct0x13(a)),
65+
0x14 => write_layout!(out, offset, Matrix4x3(x_axis, y_axis, z_axis, w_axis)),
6466

6567
// mat
6668
0x20 => write_layout!(out, offset, Mat2()), // private members

0 commit comments

Comments
 (0)