0.9.9 API documenation
qualifier.hpp
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include "setup.hpp"
7 
8 namespace glm
9 {
11  enum qualifier
12  {
16 
17 # if GLM_HAS_ALIGNED_TYPE
18  aligned_highp,
19  aligned_mediump,
20  aligned_lowp, // ///< Typed data is aligned in memory allowing SIMD optimizations and operations are executed with high precision in term of ULPs to maximize performance
21  aligned = aligned_highp,
22 # endif
23 
28 
29 # if GLM_HAS_ALIGNED_TYPE && defined(GLM_FORCE_ALIGNED)
30  defaultp = aligned_highp
31 # else
32  defaultp = highp
33 # endif
34  };
35 
36  template<length_t L, typename T, qualifier Q = defaultp> struct vec;
37  template<length_t C, length_t R, typename T, qualifier Q = defaultp> struct mat;
38 
39 namespace detail
40 {
41  template<glm::qualifier P>
42  struct is_aligned
43  {
44  static const bool value = false;
45  };
46 
47 # if GLM_HAS_ALIGNED_TYPE
48  template<>
49  struct is_aligned<glm::aligned_lowp>
50  {
51  static const bool value = true;
52  };
53 
54  template<>
55  struct is_aligned<glm::aligned_mediump>
56  {
57  static const bool value = true;
58  };
59 
60  template<>
61  struct is_aligned<glm::aligned_highp>
62  {
63  static const bool value = true;
64  };
65 # endif
66 }//namespace detail
67 }//namespace glm
By default lowp qualifier is also packed.
Definition: qualifier.hpp:26
Typed data is tightly packed in memory and operations are executed with low precision in term of ULPs...
Definition: qualifier.hpp:15
qualifier
Qualify GLM types in term of alignment (packed, aligned) and precision in term of ULPs (lowp...
Definition: qualifier.hpp:11
By default highp qualifier is also packed.
Definition: qualifier.hpp:24
Typed data is tightly packed in memory and operations are executed with medium precision in term of U...
Definition: qualifier.hpp:14
Core features
By default mediump qualifier is also packed.
Definition: qualifier.hpp:25
By default packed qualifier is also high precision.
Definition: qualifier.hpp:27
Typed data is tightly packed in memory and operations are executed with high precision in term of ULP...
Definition: qualifier.hpp:13
Definition: common.hpp:20