master
ブランチ master
VulkanExample / dep / include / glm / ext / vector_float1.hpp
1.1 KB、39行 生 Blame 履歴
1/// @ref ext_vector_float1
2/// @file glm/ext/vector_float1.hpp
3///
4/// @defgroup ext_vector_float1 GLM_EXT_vector_float1
5/// @ingroup ext
6///
7/// Exposes single-precision floating point vector type with one component.
8///
9/// Include <glm/ext/vector_float1.hpp> to use the features of this extension.
10///
11/// @see ext_vector_float1_precision extension.
12/// @see ext_vector_double1 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_float1 extension included")
20#endif
21
22namespace glm
23{
24 /// @addtogroup ext_vector_float1
25 /// @{
26
27 /// 1 components vector of single-precision floating-point numbers.
28 typedef vec<1, float, defaultp> vec1;
29
30 /// @}
31}//namespace glm
32
33#if GLM_CONFIG_CTOR_INIT == GLM_DISABLE
34static_assert(std::is_trivially_default_constructible<glm::vec1>::value);
35#endif
36static_assert(std::is_trivially_copy_assignable<glm::vec1>::value);
37static_assert(std::is_trivially_copyable<glm::vec1>::value);
38static_assert(std::is_copy_constructible<glm::vec1>::value);
39static_assert(glm::vec1::length() == 1);