XMConvertFloatToHalfStream function

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

Syntax

HALF * XMConvertFloatToHalfStream(
  HALF        *pOutputStream,
  size_t      OutputStride,
  const float *pInputStream,
  size_t      InputStride,
  size_t      FloatCount
);

Parameters

pOutputStream

Address of the first HALF value in the output stream.

OutputStride

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

pInputStream

Address of the first float value in the input stream.

InputStride

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

FloatCount

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

   
Target Platform Windows
Header directxpackedvector.h (include DirectXPackedVector.h)

See Also

DirectXMath Library Conversion Functions

XMConvertFloatToHalf