• Advertisement
Sign in to follow this  

D3DXMATRIXA16 what "A16" mean?

This topic is 4217 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

D3DXMATRIXA16 , -A16 is what? my guess is,, 1. 16bit Alignment 2. cause there is 16 element(_11..._44) which 1? or other meaning?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by FReY
16 *byte* aligned.
Yup.

The reason for the alignment is that it can be faster to use the matrix if it's aligned to a certain boundary. SSE2 and 3dNow! both need the matrix aligned. If it's not aligned, I'd guess that D3DX will either copy it to an aligned version, or it'll fallback and use some other method for changing the matrix (E.g. a plain x86 ASM version of a matrix multiply rather than an SSE2 one).

Basically, it's faster to use, but usually takes more memory.

Share this post


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

  • Advertisement