XMLoadFloat3

Loads an XMFLOAT3 into an XMVECTOR.

Syntax

XMVECTOR XMLoadFloat3(
         const XMFLOAT3 *pSource
)  

Parameters

pSource
Type: XMFLOAT3 *

[in]

Address of the XMFLOAT3 structure to load.

Return value

Type: XMVECTOR 

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

Remarks

The x, y and z members of the XMFLOAT3 are loaded into the corresponding members of the XMVECTOR. The w member of the returned XMVECTOR is initialized to 0.

Requirements

Header: Declared in directxmath.h.