In a lot of situations if would find it more convenient to keep my data in a XMMATRIX or XMVECTOR format,intead of storing it back to a XMFLOAT*** structure.
1 reply to this topic
Members - Reputation: 171
Posted 07 November 2012 - 07:21 PM
You can but you need to be careful about alignment issues. XMMATRIX and XMVECTOR need to be 16-byte aligned. See here for more on it: http://msdn.microsoft.com/en-us/library/ee418732(VS.85).aspx#Properly_Align_Alloc . You can see an example of how to deal with a 'new' alignment in the SpriteBatch class in DirectXTK - http://directxtk.codeplex.com/ - and its AlignedNew.h header file.