XMLoadShort4

Loads an XMSHORT4 into an XMVECTOR.

Syntax

XMVECTOR XMLoadShort4(
         const XMSHORT4 *pSource
)  

Parameters

pSource
Type: XMSHORT4 *

[in]

Address of the XMSHORT4 structure to load.

Return value

Type: XMVECTOR 

Returns an XMVECTOR structure loaded with the data from the pSource parameter.

Remarks

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;  

Requirements

Header: Declared in directxpackedvector.h.