@@ -22,7 +22,8 @@ macro_rules! write_layout {
2222 // offset 0: size
2323 $out[ $offset. inc( ) ] = size_of:: <$name>( ) as u32 ;
2424 // 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 ;
2627 // offset 8 onwards: members
2728 $( $out[ $offset. inc( ) ] = offset_of!( $name, $member) as u32 ; ) *
2829 }
@@ -45,17 +46,17 @@ pub fn eval_layouts(gid: u32, out: &mut [u32]) {
4546 0x4 => write_layout ! ( out, offset, UVec2 ( x, y) ) ,
4647 0x5 => write_layout ! ( out, offset, IVec2 ( x, y) ) ,
4748 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)),
5152 0xB => write_layout ! ( out, offset, Vec3A ( ) ) , // private members
5253 0xC => write_layout ! ( out, offset, UVec4 ( x, y, z, w) ) ,
5354 0xD => write_layout ! ( out, offset, IVec4 ( x, y, z, w) ) ,
5455 0xE => write_layout ! ( out, offset, Vec4 ( ) ) , // private members
5556
5657 // 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)),
5960 _ => { }
6061 }
6162}
0 commit comments