XMLoadHalf2

Loads an XMHALF2 into an XMVECTOR.

Syntax

XMVECTOR XMLoadHalf2(
         const XMHALF2 *pSource
)  

Parameters

pSource
Type: XMHALF2 *

[in]

Address of the XMHALF2 structure to load.

Return value

Type: XMVECTOR 

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

Remarks

The x and y members of the XMHALF2 are converted to single-precision format and loaded into the corresponding members of the XMVECTOR. The z and w members of the returned XMVECTOR will be initialized to 0.

Requirements

Header: Declared in directxpackedvector.h.