diff --git a/glm/gtx/simd_mat4.hpp b/glm/gtx/simd_mat4.hpp index 22f28279..2a1b9ff4 100644 --- a/glm/gtx/simd_mat4.hpp +++ b/glm/gtx/simd_mat4.hpp @@ -91,6 +91,8 @@ namespace detail fvec4SIMD const & v3); explicit fmat4x4SIMD( tmat4x4 const & m); + explicit fmat4x4SIMD( + __m128 const in[4]); // Conversions //template diff --git a/glm/gtx/simd_mat4.inl b/glm/gtx/simd_mat4.inl index c748098b..6644c7fa 100644 --- a/glm/gtx/simd_mat4.inl +++ b/glm/gtx/simd_mat4.inl @@ -82,6 +82,17 @@ GLM_FUNC_QUALIFIER fmat4x4SIMD::fmat4x4SIMD this->Data[3] = fvec4SIMD(m[3]); } +GLM_FUNC_QUALIFIER fmat4x4SIMD::fmat4x4SIMD +( + __m128 const in[4] +) +{ + this->Data[0] = in[0]; + this->Data[1] = in[1]; + this->Data[2] = in[2]; + this->Data[3] = in[3]; +} + ////////////////////////////////////// // Accesses