Hi,
I am starting to look at the xnamath library and had a question of what XMVECTORF32 is useful for. The docs say:
Quote:
An opaque, portable type to support the use of C/C++ initializer syntax to load floating-point values into an instance of XMVECTOR type.
Then one of the sample apps do something like:
static const XMVECTORF32 g_vFLTMAX = { FLT_MAX, FLT_MAX, FLT_MAX, FLT_MAX };
...
m_vSceneAABBMin = g_vFLTMAX;
where m_vSceneAABBMin is of type XMVECTOR. So it looks like you can assign XMVECTORF32 to XMVECTOR.
However, why not use XMVectorSet or XMLoadFloat4?
Is the sole purpose of XMVECTOR32 is to get initialization syntax? Why could they just not allow the initialization syntax on XMVECTOR directly?