XMConvertVectorFloatToUInt

Converts an XMVECTOR with float components to an XMVECTOR with uint32_t components and applies a uniform bias.

Syntax

XMVECTOR XMConvertVectorFloatToUInt(
         XMVECTOR VFloat,
         uint32_t MulExponent
)  

Parameters

VFloat
Type: XMVECTOR 

Vector with float components that is to be converted.

MulExponent
Type: uint32_t 

Each component of VFloat will be converted to a int32_t and then multiplied by two raised to the DivExponent power. This parameter must be a number (an immediate value) and not a variable.

Return value

Type: XMVECTOR 

Returns the converted vector, where each component has been multiplied by two raised to the MulExponent power.

Requirements

Header: Declared in directxmath.h.