XMConvertFloatToHalfStream function (directxpackedvector.h)
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] size_t OutputStride,
[in] const float *pInputStream,
[in] size_t InputStride,
[in] size_t FloatCount
) noexcept;
Parameters
[out] pOutputStream
Address of the first HALF value in the output stream.
[in] OutputStride
Stride in bytes between the HALF values in the output stream.
[in] pInputStream
Address of the first float value in the input stream.
[in] InputStride
Stride in bytes between the float values in the input stream.
[in] 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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | directxpackedvector.h (include DirectXPackedVector.h) |