?/TD>
Microsoft DirectX 9.0

Order of Operations


Pixel shaders instructions can be modified by a combination of source register modifiers, instruction modifiers, and destination register write masks. The result of the instruction is determined by the order in which they are run. The sequence shown below identifies the order in which source register modifiers, instruction modifiers, and destination register write masks are run.

  1. Run Source Register Selectors and source Register Modifiers.
  2. Run instruction.
  3. Run Instruction Modifiers.
  4. Update destination register based on destination Register Write Masks.
Note  The saturate instruction modifier can be combined with any one of the other instruction modifiers. The Source Register Selectors and Register Modifiers may be combined.


© 2002 Microsoft Corporation. All rights reserved.