Added vec4 SIMD contructor specialization

This commit is contained in:
Christophe Riccio
2016-05-28 01:33:29 +02:00
parent c5f48da319
commit a9fefc7300
3 changed files with 114 additions and 8 deletions

View File

@@ -193,10 +193,12 @@ int test_mat2x4_ctor()
} A, B;
A.f = glm::mat2x4(0);
Error += glm::all(glm::equal(A.i[0], glm::vec4(0))) ? 0 : 1;
glm::vec4 const C(0, 0, 0, 0);
Error += glm::all(glm::equal(A.i[0], C)) ? 0 : 1;
B.f = glm::mat2x4(1);
Error += glm::all(glm::equal(B.i[0], glm::vec4(1, 0, 0, 0))) ? 0 : 1;
glm::vec4 const D(1, 0, 0, 0);
Error += glm::all(glm::equal(B.i[0], D)) ? 0 : 1;
}
# endif//GLM_HAS_DEFAULTED_FUNCTIONS