Vertex Shader Source Register Modifiers

Source modifiers can be applied to modify the data read from a source register before the data is used by the instruction.


Negate the contents of the source register.

Component modifierDescription
- rSource negation


The negate modifier cannot be used on second source register of these instructions: m3x2 - vs, m3x3 - vs, m3x4 - vs, m4x3 - vs, m4x4 - vs.

Vertex shader versions1_12_02_x2_sw3_03_sw


Absolute Value

Take the absolute value of the register.

Vertex shader versions1_12_02_x2_sw3_03_sw


If any version 3 shader reads from one or more constant float registers (c#), one of the following must be true.

  • All of the constant floating-point registers must use the abs modifier.
  • None of the constant floating-point registers can use the abs modifier.

Related topics

Vertex Shader Register Modifiers