@@ -22,7 +22,8 @@ macro_rules! write_layout {
22
22
// offset 0: size
23
23
$out[ $offset. inc( ) ] = size_of:: <$name>( ) as u32 ;
24
24
// offset 4: alignment
25
- $out[ $offset. inc( ) ] = align_of:: <$name>( ) as u32 ;
25
+ // $out[$offset.inc()] = align_of::<$name>() as u32;
26
+ $out[ $offset. inc( ) ] = 0 ;
26
27
// offset 8 onwards: members
27
28
$( $out[ $offset. inc( ) ] = offset_of!( $name, $member) as u32 ; ) *
28
29
}
@@ -41,21 +42,21 @@ pub fn eval_layouts(gid: u32, out: &mut [u32]) {
41
42
// vec
42
43
0x0 => write_layout ! ( out, offset, u32 ( ) ) ,
43
44
0x1 => write_layout ! ( out, offset, UVec2 ( x, y) ) ,
44
- 0x2 => write_layout ! ( out, offset, UVec3 ( x, y, z) ) ,
45
+ // 0x2 => write_layout!(out, offset, UVec3(x, y, z)),
45
46
0x3 => write_layout ! ( out, offset, UVec4 ( x, y, z, w) ) ,
46
47
0x4 => write_layout ! ( out, offset, i32 ( ) ) ,
47
48
0x5 => write_layout ! ( out, offset, IVec2 ( x, y) ) ,
48
- 0x6 => write_layout ! ( out, offset, IVec3 ( x, y, z) ) ,
49
+ // 0x6 => write_layout!(out, offset, IVec3(x, y, z)),
49
50
0x7 => write_layout ! ( out, offset, IVec4 ( x, y, z, w) ) ,
50
51
0x8 => write_layout ! ( out, offset, f32 ( ) ) ,
51
52
0x9 => write_layout ! ( out, offset, Vec2 ( x, y) ) ,
52
- 0xA => write_layout ! ( out, offset, Vec3 ( x, y, z) ) ,
53
+ // 0xA => write_layout!(out, offset, Vec3(x, y, z)),
53
54
0xB => write_layout ! ( out, offset, Vec4 ( ) ) , // private members
54
55
0xC => write_layout ! ( out, offset, Vec3A ( ) ) , // private members
55
56
56
57
// experiments structs
57
- 0x10 => write_layout ! ( out, offset, Struct0x10 ( a, b) ) ,
58
- 0x11 => write_layout ! ( out, offset, Struct0x11 ( a, b) ) ,
58
+ // 0x10 => write_layout!(out, offset, Struct0x10(a, b)),
59
+ // 0x11 => write_layout!(out, offset, Struct0x11(a, b)),
59
60
_ => { }
60
61
}
61
62
}
0 commit comments