XMVectorRound function (directxmath.h)
Rounds each component of a vector to the nearest even integer (known as "Bankers Rounding").
XMVECTOR XM_CALLCONV XMVectorRound( [in] FXMVECTOR V ) noexcept;
Vector whose components should be rounded.
Returns a vector, each of whose components are rounded to the nearest integer.
Banker's Rounding is used because it is the native vector rounding intrinsic method for both SSE4 and ARMv8 NEON.
|Header||directxmath.h (include DirectXMath.h)|