XMConvertVectorUIntToFloat

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

Syntax

XMVECTOR XMConvertVectorUIntToFloat(
         XMVECTOR VUInt,
         uint32_t DivExponent
)  

Parameters

VUInt
Type: XMVECTOR 

Vector with uint32_t components that is to be converted.

DivExponent
Type: uint32_t 

Each component of VUInt 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.