1mod i16vec2;
2mod i16vec3;
3mod i16vec4;
4
5pub use i16vec2::{i16vec2, I16Vec2};
6pub use i16vec3::{i16vec3, I16Vec3};
7pub use i16vec4::{i16vec4, I16Vec4};
8
9#[cfg(not(target_arch = "spirv"))]
10mod test {
11 use super::*;
12
13 mod const_test_i16vec2 {
14 const_assert_eq!(4, core::mem::size_of::<super::I16Vec2>());
15
16 #[cfg(not(feature = "cuda"))]
17 const_assert_eq!(
18 core::mem::align_of::<i16>(),
19 core::mem::align_of::<super::I16Vec2>()
20 );
21 #[cfg(feature = "cuda")]
22 const_assert_eq!(4, core::mem::align_of::<super::I16Vec2>());
23 }
24
25 mod const_test_i16vec3 {
26 const_assert_eq!(
27 core::mem::align_of::<i16>(),
28 core::mem::align_of::<super::I16Vec3>()
29 );
30 const_assert_eq!(6, core::mem::size_of::<super::I16Vec3>());
31 }
32
33 mod const_test_i16vec4 {
34 const_assert_eq!(8, core::mem::size_of::<super::I16Vec4>());
35
36 #[cfg(not(feature = "cuda"))]
37 const_assert_eq!(
38 core::mem::align_of::<i16>(),
39 core::mem::align_of::<super::I16Vec4>()
40 );
41 #[cfg(feature = "cuda")]
42 const_assert_eq!(8, core::mem::align_of::<super::I16Vec4>());
43 }
44}