Loads an XMFLOAT2 into an XMVECTOR.
XMVECTOR XMLoadFloat2(
const XMFLOAT2 *pSource
)
pSource
Type: XMFLOAT2 *
[in]
Address of the XMFLOAT2 structure to load.
Type: XMVECTOR
Returns an XMVECTOR loaded with the data from the pSource parameter.
The x and y members of the XMFLOAT2 are loaded into the corresponding members of the XMVECTOR. The z and w members of the returned XMVECTOR will be initialized to 0.
Header: Declared in directxmath.h.