Loads an XMSHORT4 into an XMVECTOR.
XMVECTOR XMLoadShort4(
const XMSHORT4 *pSource
)
pSource
Type: XMSHORT4 *
[in]
Address of the XMSHORT4 structure to load.
Type: XMVECTOR
Returns an XMVECTOR structure loaded with the data from the pSource parameter.
The four members of the XMSHORT4 are converted to single-precision format, and loaded into the corresponding members of the XMVECTOR. The following pseudocode demonstrates the operation of this function:
XMVECTOR Result;
Result.x = (float)pSource->x;
Result.y = (float)pSource->y;
Result.z = (float)pSource->z;
Result.w = (float)pSource->w;
return Result;
Header: Declared in directxpackedvector.h.