master
ブランチ master
VulkanExample / dep / include / glm / ext / vector_int3_sized.hpp
2.6 KB、72行 生 Blame 履歴
1/// @ref ext_vector_int3_sized
2/// @file glm/ext/vector_int3_sized.hpp
3///
4/// @defgroup ext_vector_int3_sized GLM_EXT_vector_int3_sized
5/// @ingroup ext
6///
7/// Exposes sized signed integer vector of 3 components type.
8///
9/// Include <glm/ext/vector_int3_sized.hpp> to use the features of this extension.
10///
11/// @see ext_scalar_int_sized
12/// @see ext_vector_uint3_sized
13
14#pragma once
15
16#include "../ext/vector_int3.hpp"
17#include "../ext/scalar_int_sized.hpp"
18
19#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
20# pragma message("GLM: GLM_EXT_vector_int3_sized extension included")
21#endif
22
23namespace glm
24{
25 /// @addtogroup ext_vector_int3_sized
26 /// @{
27
28 /// 8 bit signed integer vector of 3 components type.
29 ///
30 /// @see ext_vector_int3_sized
31 typedef vec<3, int8, defaultp> i8vec3;
32
33 /// 16 bit signed integer vector of 3 components type.
34 ///
35 /// @see ext_vector_int3_sized
36 typedef vec<3, int16, defaultp> i16vec3;
37
38 /// 32 bit signed integer vector of 3 components type.
39 ///
40 /// @see ext_vector_int3_sized
41 typedef vec<3, int32, defaultp> i32vec3;
42
43 /// 64 bit signed integer vector of 3 components type.
44 ///
45 /// @see ext_vector_int3_sized
46 typedef vec<3, int64, defaultp> i64vec3;
47
48 /// @}
49}//namespace glm
50
51#if GLM_CONFIG_CTOR_INIT == GLM_DISABLE
52static_assert(std::is_trivially_default_constructible<glm::i8vec3>::value);
53static_assert(std::is_trivially_default_constructible<glm::i16vec3>::value);
54static_assert(std::is_trivially_default_constructible<glm::i32vec3>::value);
55static_assert(std::is_trivially_default_constructible<glm::i64vec3>::value);
56#endif
57static_assert(std::is_trivially_copy_assignable<glm::i8vec3>::value);
58static_assert(std::is_trivially_copy_assignable<glm::i16vec3>::value);
59static_assert(std::is_trivially_copy_assignable<glm::i32vec3>::value);
60static_assert(std::is_trivially_copy_assignable<glm::i64vec3>::value);
61static_assert(std::is_trivially_copyable<glm::i8vec3>::value);
62static_assert(std::is_trivially_copyable<glm::i16vec3>::value);
63static_assert(std::is_trivially_copyable<glm::i32vec3>::value);
64static_assert(std::is_trivially_copyable<glm::i64vec3>::value);
65static_assert(std::is_copy_constructible<glm::i8vec3>::value);
66static_assert(std::is_copy_constructible<glm::i16vec3>::value);
67static_assert(std::is_copy_constructible<glm::i32vec3>::value);
68static_assert(std::is_copy_constructible<glm::i64vec3>::value);
69static_assert(glm::i8vec3::length() == 3);
70static_assert(glm::i16vec3::length() == 3);
71static_assert(glm::i32vec3::length() == 3);
72static_assert(glm::i64vec3::length() == 3);