@@ -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
}
@@ -45,17 +46,17 @@ pub fn eval_layouts(gid: u32, out: &mut [u32]) {
45
46
0x4 => write_layout ! ( out, offset, UVec2 ( x, y) ) ,
46
47
0x5 => write_layout ! ( out, offset, IVec2 ( x, y) ) ,
47
48
0x6 => write_layout ! ( out, offset, Vec2 ( x, y) ) ,
48
- 0x8 => write_layout ! ( out, offset, UVec3 ( x, y, z) ) ,
49
- 0x9 => write_layout ! ( out, offset, IVec3 ( x, y, z) ) ,
50
- 0xA => write_layout ! ( out, offset, Vec3 ( x, y, z) ) ,
49
+ // 0x8 => write_layout!(out, offset, UVec3(x, y, z)),
50
+ // 0x9 => write_layout!(out, offset, IVec3(x, y, z)),
51
+ // 0xA => write_layout!(out, offset, Vec3(x, y, z)),
51
52
0xB => write_layout ! ( out, offset, Vec3A ( ) ) , // private members
52
53
0xC => write_layout ! ( out, offset, UVec4 ( x, y, z, w) ) ,
53
54
0xD => write_layout ! ( out, offset, IVec4 ( x, y, z, w) ) ,
54
55
0xE => write_layout ! ( out, offset, Vec4 ( ) ) , // 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