XMConvertVectorIntToFloat

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

Syntax

XMVECTOR XMConvertVectorIntToFloat(
         XMVECTOR VInt,
         uint32_t DivExponent
)  

Parameters

VInt
Type: XMVECTOR 

Vector with int32_t components that is to be converted.

DivExponent
Type: uint32_t 

Each component of VInt will be converted to a float and then divided 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 divided by two raised to the DivExponent power.

Requirements

Header: Declared in directxmath.h.