const_shader_layout 0.3.0

Compile-time checks for whether structs conform to WGSL's memory layout rules
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0277]: the trait bound `[f32; 1]: ShaderLayoutCompat` is not satisfied
 --> tests/compile_fail/array_align_compat.rs:5:13
  |
5 |         a1: [f32; 1],
  |             ^^^^^^^^ the trait `ShaderLayoutCompat` is not implemented for `[f32; 1]`
  |
  = help: the following other types implement trait `ShaderLayoutCompat`:
            [glam::f32::sse2::mat2::Mat2; N]
            [glam::f32::sse2::mat3a::Mat3A; N]
            [glam::f32::sse2::mat4::Mat4; N]
            [glam::f32::sse2::quat::Quat; N]
            [glam::f32::sse2::vec4::Vec4; N]
            [glam::i32::ivec4::IVec4; N]
            [glam::u32::uvec4::UVec4; N]

error: aborting due to 1 previous error

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