glam/
i8.rs

1mod i8vec2;
2mod i8vec3;
3mod i8vec4;
4
5pub use i8vec2::{i8vec2, I8Vec2};
6pub use i8vec3::{i8vec3, I8Vec3};
7pub use i8vec4::{i8vec4, I8Vec4};
8
9#[cfg(not(target_arch = "spirv"))]
10mod test {
11    use super::*;
12
13    mod const_test_i8vec2 {
14        const_assert_eq!(2, core::mem::size_of::<super::I8Vec2>());
15
16        #[cfg(not(feature = "cuda"))]
17        const_assert_eq!(
18            core::mem::align_of::<i8>(),
19            core::mem::align_of::<super::I8Vec2>()
20        );
21        #[cfg(feature = "cuda")]
22        const_assert_eq!(2, core::mem::align_of::<super::I8Vec2>());
23    }
24
25    mod const_test_i8vec3 {
26        const_assert_eq!(
27            core::mem::align_of::<i8>(),
28            core::mem::align_of::<super::I8Vec3>()
29        );
30        const_assert_eq!(3, core::mem::size_of::<super::I8Vec3>());
31    }
32
33    mod const_test_i8vec4 {
34        const_assert_eq!(4, core::mem::size_of::<super::I8Vec4>());
35
36        #[cfg(not(feature = "cuda"))]
37        const_assert_eq!(
38            core::mem::align_of::<i8>(),
39            core::mem::align_of::<super::I8Vec4>()
40        );
41        #[cfg(feature = "cuda")]
42        const_assert_eq!(4, core::mem::align_of::<super::I8Vec4>());
43    }
44}