glm/experimental/simd/sse_mat4.cpp
2010-04-29 12:26:58 +01:00

62 lines
1.5 KiB
C++

#include "precompiled.h"
#include "sse_mat4.h"
/*
void test_sse_mat4()
{
{
glm::sse::mat4 m(
glm::sse::vec4(0, 1, 2, 3),
glm::sse::vec4(4, 5, 6, 7),
glm::sse::vec4(8, 9, 10, 11),
glm::sse::vec4(12, 13, 14, 15));
glm::sse::mat4 n = glm::sse::transpose(m);
m.transpose();
glm::sse::mat4 m_end;
}
{
glm::sse::mat4 m0;
glm::sse::mat4 m1(3.f);
glm::sse::mat4 m2(
glm::sse::vec4(1),
glm::sse::vec4(2),
glm::sse::vec4(3),
glm::sse::vec4(4));
glm::sse::mat4 m3 = m1 + 1.0f;
glm::sse::mat4 m4 = 1.0f + m1;
glm::sse::mat4 m5 = m2 * m2;
glm::sse::vec4 v0 = glm::sse::vec4(1.0f, 2.0f, 3.0f, 4.0f);
glm::sse::vec4 v1 = glm::sse::vec4(5.0f, 6.0f, 7.0f, 8.0f);
glm::sse::vec4 v2 = glm::sse::mat4(v0, v1, v0, v1) * glm::sse::vec4(1.0f, 2.0f, 3.0f, 4.0f);
glm::sse::vec4 v3 = glm::sse::vec4(1.0f, 2.0f, 3.0f, 4.0f) * glm::sse::mat4(v0, v1, v0, v1);
glm::sse::vec4 v_end;
}
{
glm::mat4 m0;
glm::mat4 m1(3.f);
glm::mat4 m2(
glm::vec4(1),
glm::vec4(2),
glm::vec4(3),
glm::vec4(4));
glm::mat4 m3 = m1 + 1.0f;
glm::mat4 m4 = 1.0f + m1;
glm::mat4 m5 = m2 * m2;
glm::vec4 v0 = glm::vec4(1.0f, 2.0f, 3.0f, 4.0f);
glm::vec4 v1 = glm::vec4(5.0f, 6.0f, 7.0f, 8.0f);
glm::vec4 v2 = glm::mat4(v0, v1, v0, v1) * glm::vec4(1.0f, 2.0f, 3.0f, 4.0f);
glm::vec4 v3 = glm::vec4(1.0f, 2.0f, 3.0f, 4.0f) * glm::mat4(v0, v1, v0, v1);
glm::vec4 v_end;
}
{
int a[][4] = {{0, 0, 1, 2}, {0, 0, 1, 2}};
}
glm::sse::mat4 m_end;
}
*/