master
ブランチ master
VulkanExample / dep / include / glm / ext / vector_uint4_sized.hpp
2.6 KB、72行 生 Blame 履歴
1/// @ref ext_vector_uint4_sized
2/// @file glm/ext/vector_uint4_sized.hpp
3///
4/// @defgroup ext_vector_uint4_sized GLM_EXT_vector_uint4_sized
5/// @ingroup ext
6///
7/// Exposes sized unsigned integer vector of 4 components type.
8///
9/// Include <glm/ext/vector_uint4_sized.hpp> to use the features of this extension.
10///
11/// @see ext_scalar_uint_sized
12/// @see ext_vector_int4_sized
13
14#pragma once
15
16#include "../ext/vector_uint4.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_uint4_sized extension included")
21#endif
22
23namespace glm
24{
25 /// @addtogroup ext_vector_uint4_sized
26 /// @{
27
28 /// 8 bit unsigned integer vector of 4 components type.
29 ///
30 /// @see ext_vector_uint4_sized
31 typedef vec<4, uint8, defaultp> u8vec4;
32
33 /// 16 bit unsigned integer vector of 4 components type.
34 ///
35 /// @see ext_vector_uint4_sized
36 typedef vec<4, uint16, defaultp> u16vec4;
37
38 /// 32 bit unsigned integer vector of 4 components type.
39 ///
40 /// @see ext_vector_uint4_sized
41 typedef vec<4, uint32, defaultp> u32vec4;
42
43 /// 64 bit unsigned integer vector of 4 components type.
44 ///
45 /// @see ext_vector_uint4_sized
46 typedef vec<4, uint64, defaultp> u64vec4;
47
48 /// @}
49}//namespace glm
50
51#if GLM_CONFIG_CTOR_INIT == GLM_DISABLE
52static_assert(std::is_trivially_default_constructible<glm::u8vec4>::value);
53static_assert(std::is_trivially_default_constructible<glm::u16vec4>::value);
54static_assert(std::is_trivially_default_constructible<glm::u32vec4>::value);
55static_assert(std::is_trivially_default_constructible<glm::u64vec4>::value);
56#endif
57static_assert(std::is_trivially_copy_assignable<glm::u8vec4>::value);
58static_assert(std::is_trivially_copy_assignable<glm::u16vec4>::value);
59static_assert(std::is_trivially_copy_assignable<glm::u32vec4>::value);
60static_assert(std::is_trivially_copy_assignable<glm::u64vec4>::value);
61static_assert(std::is_trivially_copyable<glm::u8vec4>::value);
62static_assert(std::is_trivially_copyable<glm::u16vec4>::value);
63static_assert(std::is_trivially_copyable<glm::u32vec4>::value);
64static_assert(std::is_trivially_copyable<glm::u64vec4>::value);
65static_assert(std::is_copy_constructible<glm::u8vec4>::value);
66static_assert(std::is_copy_constructible<glm::u16vec4>::value);
67static_assert(std::is_copy_constructible<glm::u32vec4>::value);
68static_assert(std::is_copy_constructible<glm::u64vec4>::value);
69static_assert(glm::u8vec4::length() == 4);
70static_assert(glm::u16vec4::length() == 4);
71static_assert(glm::u32vec4::length() == 4);
72static_assert(glm::u64vec4::length() == 4);