const_shader_layout 0.3.0

Compile-time checks for whether structs conform to WGSL's memory layout rules
Documentation
error[E0080]: evaluation panicked: 
              assertion failed.
              When implementing `ShaderLayout`, struct `SizeUnaligned` size (12) must be equal to its shader size (16), i.e. `roundUp(AlignOf(S), SizeOf(S)))`
              
 --> tests/compile_fail/struct_size_unaligned.rs:3:1
  |
3 | / shader_layout! {
4 | |
5 | |     pub struct SizeUnaligned {
6 | |         a4: glam::Vec3,
7 | |     }
8 | | }
  | |_^ evaluation of `_::_` failed here
  |
  = note: this error originates in the macro `shader_layout` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0080`.