mov - vs

Move floating-point data between registers.

Syntax

mov dst, src

where

Remarks

Vertex shader versions 1_1 2_0 2_x 2_sw 3_0 3_sw
mov x x x x x x

Can be used for floating point data. For version vs_1_1, it can also be used to write the address register. When used to update address registers, the values are converted from floating point using rounding to nearest.

The following code fragment shows the operations performed.

if(dest is an integer register)
{
    int intSrc = RoundToNearest(src.w);
    dest = intSrc;
}
else
{
    dest = src;
}