Sign in to follow this  

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=""][/url] . You can see an example of how to deal with a 'new' alignment in the SpriteBatch class in DirectXTK - [url=""][/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