XMLoadFloat4

Loads an XMFLOAT4 into an XMVECTOR.

Syntax

XMVECTOR XMLoadFloat4(
         const XMFLOAT4 *pSource
)  

Parameters

pSource
Type: XMFLOAT4 *

[in]

Address of the XMFLOAT4 structure to load.

Return value

Type: XMVECTOR 

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

Remarks

The x, y, z, and w members of the XMFLOAT4 are loaded into the corresponding members of the XMVECTOR.

Requirements

Header: Declared in directxmath.h.