XMLoadUByte4

Loads an XMUBYTE4 into an XMVECTOR.

Syntax

XMVECTOR XMLoadUByte4(
         const XMUBYTE4 *pSource
)  

Parameters

pSource
Type: XMUBYTE4 *

[in]

Address of the XMUBYTE4 structure to load.

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.