mov - vs

Move floating-point data between registers.

Syntax

mov dst, src

 

where

  • dst is the destination register.
  • src is a source register.

Remarks

Vertex shader versions1_12_02_x2_sw3_03_sw
movxxxxxx

 

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;
}


Related topics

Vertex Shader Instructions

 

 

Show: