itof (sm4 - asm)

Signed integer to floating point conversion.

itof dest[.mask], [-]src0[.swizzle]
Item Description
dest
[in] Contains the result of the operation.
src0
[in] Contains the value to convert.

Remarks

This signed integer-to-float conversion instruction assumes that src0 contains a signed 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 in magnitude to be represented exactly in the floating point format, rounding to nearest even mode is strongly recommended but not required.

The optional negate modifier on source operand takes 2's complement before performing arithmetic operation.

This instruction applies to the following shader stages:

Vertex Shader Geometry Shader Pixel Shader
x x x

Minimum Shader Model

This function is supported in the following shader models.

Shader Model Supported
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

Shader Model 4 Assembly (DirectX HLSL)