Sign in to follow this  
mrheisenberg

Can you use XMMATRIX and XMVECTOR for storage?

Recommended Posts

MikeBMcL    173
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this