utof (sm4 - asm)

Unsigned integer to floating point conversion.

utof dest[.mask], src0[.swizzle]




[in] The address of the result of the operation.


[in] The components to convert.



src0 must contain an unsigned 32-bit integer 4-tuple. After the instruction executes, dest will contain a floating-point 4-tuple. The conversion is performed per-component.

When an integer input value is too large to be represented exactly in the floating point format, round to nearest even mode.

This instruction applies to the following shader stages:

Vertex ShaderGeometry ShaderPixel Shader


Minimum Shader Model

This function is supported in the following shader models.

Shader ModelSupported
Shader Model 5 yes
Shader Model 4.1 yes
Shader Model 4 yes
Shader Model 3 (DirectX HLSL) no
Shader Model 2 (DirectX HLSL) no
Shader Model 1 (DirectX HLSL) no


Related topics

Shader Model 4 Assembly (DirectX HLSL)