mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Clean up
This commit is contained in:
parent
6b2ecaaf42
commit
36de7ea9e9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user