diff --git a/openVulkanoCpp/Math/Math.hpp b/openVulkanoCpp/Math/Math.hpp index 5d908ef..73ffa2d 100644 --- a/openVulkanoCpp/Math/Math.hpp +++ b/openVulkanoCpp/Math/Math.hpp @@ -85,11 +85,12 @@ namespace OpenVulkano::Math } } - template using Matrix2_SIMD = glm::tmat2x2; - template using Matrix3_SIMD = glm::tmat3x3; - template using Matrix4_SIMD = glm::tmat4x4; - template using Matrix2 = glm::tmat2x2; - template using Matrix3 = glm::tmat3x3; + template using Matrix = glm::mat; + template using Matrix2_SIMD = Matrix<2, T, glm::aligned>; + template using Matrix3_SIMD = Matrix<3, T, glm::aligned>; + template using Matrix4_SIMD = Matrix<4, T, glm::aligned>; + template using Matrix2 = Matrix<2, T, glm::packed>; + template using Matrix3 = Matrix<3, T, glm::packed>; template using Matrix4 = Matrix4_SIMD; //template using Matrix4 = glm::tmat4x4; @@ -123,11 +124,12 @@ namespace OpenVulkano::Math typedef Matrix4_SIMD Matrix4i_SIMD; typedef Matrix4_SIMD Matrix4l_SIMD; - template using Vector2_SIMD = glm::tvec2; - template using Vector3_SIMD = glm::tvec3; - template using Vector4_SIMD = glm::tvec4; - template using Vector2 = glm::tvec2; - template using Vector3 = glm::tvec3; + template using Vector = glm::vec; + template using Vector2_SIMD = Vector<2, T, glm::aligned>; + template using Vector3_SIMD = Vector<3, T, glm::aligned>; + template using Vector4_SIMD = Vector<4, T, glm::aligned>; + template using Vector2 = Vector<2, T, glm::packed>; + template using Vector3 = Vector<3, T, glm::packed>; template using Vector4 = Vector4_SIMD; //template using Vector4 = glm::tvec4;