GS: Make GSVertex POD

Same code is generated with optimization (256-bit store in AVX2).
This commit is contained in:
Stenzek 2024-01-08 22:41:08 +10:00 committed by Connor McLaughlin
parent 57f2cd5f9e
commit c0e4883987
1 changed files with 0 additions and 21 deletions

View File

@ -26,27 +26,6 @@ struct alignas(32) GSVertex
#endif #endif
__m128i m[2]; __m128i m[2];
}; };
GSVertex() = default; // Warning object is potentially used in hot path
#if _M_SSE >= 0x500
GSVertex(const GSVertex& v)
{
mx = v.mx;
}
void operator=(const GSVertex& v) { mx = v.mx; }
#else
GSVertex(const GSVertex& v)
{
m[0] = v.m[0];
m[1] = v.m[1];
}
void operator=(const GSVertex& v)
{
m[0] = v.m[0];
m[1] = v.m[1];
}
#endif
}; };
static_assert(sizeof(GSVertex) == 32); static_assert(sizeof(GSVertex) == 32);