2.8 KB、55行 生 Blame 履歴
1/// @ref core
2/// @file glm/ext/vector_double4_precision.hpp
3
4#pragma once
5#include "../detail/setup.hpp"
6#include "../detail/type_vec4.hpp"
7
8namespace glm
9{
10 /// @addtogroup core_vector_precision
11 /// @{
12
13 /// 4 components vector of high double-qualifier floating-point numbers.
14 /// There is no guarantee on the actual qualifier.
15 ///
16 /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.5 Vectors</a>
17 /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier</a>
18 typedef vec<4, double, highp> highp_dvec4;
19
20 /// 4 components vector of medium double-qualifier floating-point numbers.
21 /// There is no guarantee on the actual qualifier.
22 ///
23 /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.5 Vectors</a>
24 /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier</a>
25 typedef vec<4, double, mediump> mediump_dvec4;
26
27 /// 4 components vector of low double-qualifier floating-point numbers.
28 /// There is no guarantee on the actual qualifier.
29 ///
30 /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.5 Vectors</a>
31 /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier</a>
32 typedef vec<4, double, lowp> lowp_dvec4;
33
34 /// @}
35}//namespace glm
36
37#if GLM_CONFIG_CTOR_INIT == GLM_DISABLE
38static_assert(std::is_trivially_default_constructible<glm::highp_dvec4>::value);
39static_assert(std::is_trivially_default_constructible<glm::mediump_dvec4>::value);
40static_assert(std::is_trivially_default_constructible<glm::lowp_dvec4>::value);
41#endif
42static_assert(std::is_trivially_copy_assignable<glm::highp_dvec4>::value);
43static_assert(std::is_trivially_copy_assignable<glm::mediump_dvec4>::value);
44static_assert(std::is_trivially_copy_assignable<glm::lowp_dvec4>::value);
45static_assert(std::is_trivially_copyable<glm::highp_dvec4>::value);
46static_assert(std::is_trivially_copyable<glm::mediump_dvec4>::value);
47static_assert(std::is_trivially_copyable<glm::lowp_dvec4>::value);
48static_assert(std::is_copy_constructible<glm::highp_dvec4>::value);
49static_assert(std::is_copy_constructible<glm::mediump_dvec4>::value);
50static_assert(std::is_copy_constructible<glm::lowp_dvec4>::value);
51static_assert(glm::highp_dvec4::length() == 4);
52static_assert(glm::mediump_dvec4::length() == 4);
53static_assert(glm::lowp_dvec4::length() == 4);
54static_assert(sizeof(glm::highp_dvec4) == sizeof(glm::mediump_dvec4));
55static_assert(sizeof(glm::highp_dvec4) == sizeof(glm::lowp_dvec4));