This commit is contained in:
Christophe Riccio 2013-12-26 13:14:50 +01:00
parent 6b2ecaaf42
commit 36de7ea9e9

View File

@ -357,34 +357,15 @@ int test_vec4_perf_SoA(std::size_t Size)
std::clock_t EndTime = std::clock();
std::printf("SoA: %d\n", EndTime - StartTime);
std::printf("SoA: %d\n", EndTime - StartTime);
return Error;
}
/*
struct simd_vec4
{
union
{
__m128 data;
union { float x, r, s; };
union { float y, g, t; };
union { float z, b, p; };
union { float w, a, q; };
};
};
*/
int main()
{
//__m128 DataA = swizzle<X, Y, Z, W>(glm::vec4(1.0f, 2.0f, 3.0f, 4.0f));
//__m128 DataB = swizzle<W, Z, Y, X>(glm::vec4(1.0f, 2.0f, 3.0f, 4.0f));
int Error(0);
glm::vec4 v(1.0, 0.5, 0.0, 1.0);
std::size_t const Size(1000000);
Error += test_vec4_perf_AoS(Size);