XMVECTOR gringo = { 1, 2, 3, 4 };
float a = XMVectorGetY(gringo);
cout << a << endl;
XMVectorSetY(gringo, 40);
a = XMVectorGetY(gringo);
cout << a << endl;
The first output should be 2 which it is. The second output should be 40 put it's still 2, why? What have I done wrong?
Regards!