浏览代码

Add pure typedefs to the SIMD types

Jesse Talavera-Greenberg 10 年之前
父节点
当前提交
f46249620a
共有 3 个文件被更改,包括 7 次插入0 次删除
  1. 5 0
      glm/gtx/simd_mat4.hpp
  2. 1 0
      glm/gtx/simd_quat.hpp
  3. 1 0
      glm/gtx/simd_vec4.hpp

+ 5 - 0
glm/gtx/simd_mat4.hpp

@@ -71,6 +71,11 @@ namespace detail
 		typedef fmat4x4SIMD type;
 		typedef fmat4x4SIMD type;
 		typedef fmat4x4SIMD transpose_type;
 		typedef fmat4x4SIMD transpose_type;
 
 
+		typedef tmat4x4<float, defaultp> pure_type;
+		typedef tvec4<float, defaultp> pure_row_type;
+		typedef tvec4<float, defaultp> pure_col_type;
+		typedef tmat4x4<float, defaultp> pure_transpose_type;
+
 #		ifdef GLM_META_PROG_HELPERS
 #		ifdef GLM_META_PROG_HELPERS
 			static GLM_RELAXED_CONSTEXPR length_t components = 4;
 			static GLM_RELAXED_CONSTEXPR length_t components = 4;
 			static GLM_RELAXED_CONSTEXPR length_t cols = 4;
 			static GLM_RELAXED_CONSTEXPR length_t cols = 4;

+ 1 - 0
glm/gtx/simd_quat.hpp

@@ -74,6 +74,7 @@ namespace detail
 
 
 		typedef fquatSIMD type;
 		typedef fquatSIMD type;
 		typedef tquat<bool, defaultp> bool_type;
 		typedef tquat<bool, defaultp> bool_type;
+		typedef tquat<float, defaultp> pure_type;
 
 
 #		ifdef GLM_META_PROG_HELPERS
 #		ifdef GLM_META_PROG_HELPERS
 			static GLM_RELAXED_CONSTEXPR length_t components = 4;
 			static GLM_RELAXED_CONSTEXPR length_t components = 4;

+ 1 - 0
glm/gtx/simd_vec4.hpp

@@ -96,6 +96,7 @@ namespace detail
 		typedef std::size_t size_type;
 		typedef std::size_t size_type;
 
 
 		typedef fvec4SIMD type;
 		typedef fvec4SIMD type;
+		typedef tvec4<float, defaultp> pure_type;
 		typedef tvec4<bool, highp> bool_type;
 		typedef tvec4<bool, highp> bool_type;
 
 
 #		ifdef GLM_META_PROG_HELPERS
 #		ifdef GLM_META_PROG_HELPERS