XMLoadUShort4

Loads an XMUSHORT4 into an XMVECTOR.

Syntax

XMVECTOR XMLoadUShort4(
         const XMUSHORT4 *pSource
)  

Parameters

pSource
Type: XMUSHORT4 *

[in]

Address of the XMUSHORT4 structure to load. This parameter must point to cached memory.

Return value

Type: XMVECTOR 

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

Remarks

The following pseudocode demonstrates the operation of the function.

XMVECTOR vectorOut;

vectorOut.x = (float)pSource->x;
vectorOut.y = (float)pSource->y;
vectorOut.z = (float)pSource->z;
vectorOut.w = (float)pSource->w;
	
return vectorOut;  

Requirements

Header: Declared in directxpackedvector.h.