Vertex Shader Source Register Modifiers
Microsoft DirectX 9.0 SDK Update (October 2004)

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

Negate the contents of the source register.

Component modifier Description
- r Source negation

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

Vertex shader versions1_12_02_x2_sw3_03_sw
-xxxxxx

Absolute Value

Take the absolute value of the register.

Vertex shader versions1_12_02_x2_sw3_03_sw
absxx

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



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.