learn-wgpu icon indicating copy to clipboard operation
learn-wgpu copied to clipboard

#[repr(C, align(16))] may now work

Open MarkSwanson opened this issue 3 years ago • 1 comments

You talk about bytemuck problems with #[repr(C, align(16))] here:

https://sotrh.github.io/learn-wgpu/showcase/alignment/#alignment-of-vertex-and-index-buffers

This might be solved as per: https://github.com/Lokathor/bytemuck/issues/129

Just a FYI. Thanks for your excellent 'learn-wgpu'!

MarkSwanson avatar Aug 26 '22 23:08 MarkSwanson

I still get a compile error cannot transmute between types of different sizes, or dependently-sized types. Thanks for letting me know though!

sotrh avatar Aug 31 '22 01:08 sotrh