XMConvertFloatToHalfStream method

Converts a stream of single-precision floating-point values to a stream of half-precision floating-point values.

Syntax


HALF* XMConvertFloatToHalfStream(
  [out]  HALF *pOutputStream,
  [in]   uint32_t OutputStride,
  [in]   const float *pInputStream,
  [in]   uint32_t InputStride,
  [in]   uint32_t FloatCount
);

Parameters

pOutputStream [out]

Address of the first HALF value in the output stream.

OutputStride [in]

Stride in bytes between the HALF values in the output stream.

pInputStream [in]

Address of the first float value in the input stream.

InputStride [in]

Stride in bytes between the float values in the input stream.

FloatCount [in]

Number of float values to convert.

Return value

Returns the address of the first HALF value in the output stream.

Remarks

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

Requirements

Namespace

DirectX::PackedVector

Header

DirectXPackedVector.h

See also

XMConvertFloatToHalf

 

 

Community Additions

ADD
Show:
© 2014 Microsoft