Microsoft DirectX 9.0


Performs a (1 - value) calculation for each channel of the specified register.


1 - source register


Source Register. For more about register types, see Registers - ps_1_X.


The contents of the register are not changed. The modifier is applied only to the data read from the register. The invert operation is applied to all four color channels (RGBA).

This modifier can be used only with arithmetic instructions. In addition, this modifier cannot be combined with the other Register Modifiers.


This example uses inversion to generate the complement of register r1.

mul r0, r0, 1-r1    ; Multiply by (1.0 - r1).

© 2002 Microsoft Corporation. All rights reserved.