Skip to content

Latest commit

 

History

History
78 lines (45 loc) · 1.17 KB

mov---vs.md

File metadata and controls

78 lines (45 loc) · 1.17 KB
title description ms.assetid ms.topic ms.date topic_type api_name api_type api_location
mov - vs
Move floating-point data between registers.
bf013ab2-593e-4201-ba75-faebd0c9f97a
reference
05/31/2018
apiref

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

Related topics

Vertex Shader Instructions