glam/
i64.rs

1mod i64vec2;
2mod i64vec3;
3mod i64vec4;
4
5pub use i64vec2::{i64vec2, I64Vec2};
6pub use i64vec3::{i64vec3, I64Vec3};
7pub use i64vec4::{i64vec4, I64Vec4};
8
9#[cfg(not(target_arch = "spirv"))]
10mod test {
11    use super::*;
12
13    mod const_test_i64vec2 {
14        const_assert_eq!(16, core::mem::size_of::<super::I64Vec2>());
15
16        #[cfg(not(feature = "cuda"))]
17        const_assert_eq!(
18            core::mem::align_of::<i64>(),
19            core::mem::align_of::<super::I64Vec2>()
20        );
21        #[cfg(feature = "cuda")]
22        const_assert_eq!(16, core::mem::align_of::<super::I64Vec2>());
23    }
24
25    mod const_test_i64vec3 {
26        const_assert_eq!(24, core::mem::size_of::<super::I64Vec3>());
27
28        const_assert_eq!(
29            core::mem::align_of::<i64>(),
30            core::mem::align_of::<super::I64Vec3>()
31        );
32    }
33
34    mod const_test_i64vec4 {
35        const_assert_eq!(32, core::mem::size_of::<super::I64Vec4>());
36
37        #[cfg(not(feature = "cuda"))]
38        const_assert_eq!(
39            core::mem::align_of::<i64>(),
40            core::mem::align_of::<super::I64Vec4>()
41        );
42        #[cfg(feature = "cuda")]
43        const_assert_eq!(16, core::mem::align_of::<super::I64Vec4>());
44    }
45}