master
ブランチ master
VulkanExample / dep / include / glm / ext / vector_int1.hpp
1.1 KB、39行 生 Blame 履歴
1/// @ref ext_vector_int1
2/// @file glm/ext/vector_int1.hpp
3///
4/// @defgroup ext_vector_int1 GLM_EXT_vector_int1
5/// @ingroup ext
6///
7/// Exposes ivec1 vector type.
8///
9/// Include <glm/ext/vector_int1.hpp> to use the features of this extension.
10///
11/// @see ext_vector_uint1 extension.
12/// @see ext_vector_int1_precision extension.
13
14#pragma once
15
16#include "../detail/type_vec1.hpp"
17
18#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
19# pragma message("GLM: GLM_EXT_vector_int1 extension included")
20#endif
21
22namespace glm
23{
24 /// @addtogroup ext_vector_int1
25 /// @{
26
27 /// 1 component vector of signed integer numbers.
28 typedef vec<1, int, defaultp> ivec1;
29
30 /// @}
31}//namespace glm
32
33#if GLM_CONFIG_CTOR_INIT == GLM_DISABLE
34static_assert(std::is_trivially_default_constructible<glm::ivec1>::value);
35#endif
36static_assert(std::is_trivially_copy_assignable<glm::ivec1>::value);
37static_assert(std::is_trivially_copyable<glm::ivec1>::value);
38static_assert(std::is_copy_constructible<glm::ivec1>::value);
39static_assert(glm::ivec1::length() == 1);