Can I use memcpy() with XMMATRIX?

199 views Asked by At

I.e. can I do this:

XMMATRIX dxMat;
Matrix myMat;
std::memcpy(&myMat, &dxMat, sizeof(XMMATRIX));
std::memcpy(&dxMat, &myMat, sizeof(XMMATRIX));

Matrix is my own class which contains 16 contiguous float variables. Also can I do the same with my vector class (4 floats) and XMVECTOR?

Edit: In other words, is XMMATRIX a POD?

0

There are 0 answers