1 reply to this topic
Members - Reputation: 172
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.