1mod ivec2;
2mod ivec3;
3mod ivec4;
4
5pub use ivec2::{ivec2, IVec2};
6pub use ivec3::{ivec3, IVec3};
7pub use ivec4::{ivec4, IVec4};
8
9#[cfg(not(target_arch = "spirv"))]
10mod test {
11 use super::*;
12
13 mod const_test_ivec2 {
14 const_assert_eq!(8, core::mem::size_of::<super::IVec2>());
15
16 #[cfg(not(feature = "cuda"))]
17 const_assert_eq!(
18 core::mem::align_of::<i32>(),
19 core::mem::align_of::<super::IVec2>()
20 );
21 #[cfg(feature = "cuda")]
22 const_assert_eq!(8, core::mem::align_of::<super::IVec2>());
23 }
24
25 mod const_test_ivec3 {
26 const_assert_eq!(
27 core::mem::align_of::<i32>(),
28 core::mem::align_of::<super::IVec3>()
29 );
30 const_assert_eq!(12, core::mem::size_of::<super::IVec3>());
31 }
32
33 mod const_test_ivec4 {
34 const_assert_eq!(16, core::mem::size_of::<super::IVec4>());
35
36 #[cfg(not(feature = "cuda"))]
37 const_assert_eq!(
38 core::mem::align_of::<i32>(),
39 core::mem::align_of::<super::IVec4>()
40 );
41 #[cfg(feature = "cuda")]
42 const_assert_eq!(16, core::mem::align_of::<super::IVec4>());
43 }
44}