XMLoadFloat

Loads a floating-point scalar value into an XMVECTOR.

Syntax

XMVECTOR XMLoadFloat(
         const float *pSource
)  

Parameters

pSource
Type: float *

[in]

Address of the scalar data to load. The data pointed to by this parameter must be 4-byte aligned and reside in cached memory.

Return value

Type: XMVECTOR 

Returns an XMVECTOR whose x member is loaded with the data from the pSource parameter. The other components of the returned vector will be initialized to 0.

Requirements

Header: Declared in directxmath.h.