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