• Advertisement
Sign in to follow this  

Can you use XMMATRIX and XMVECTOR for storage?

This topic is 1899 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
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: [url="http://msdn.microsoft.com/en-us/library/ee418732(VS.85).aspx#Properly_Align_Alloc"]http://msdn.microsoft.com/en-us/library/ee418732(VS.85).aspx#Properly_Align_Alloc[/url] . You can see an example of how to deal with a 'new' alignment in the SpriteBatch class in DirectXTK - [url="http://directxtk.codeplex.com/"]http://directxtk.codeplex.com/[/url] - and its AlignedNew.h header file.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement