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.
- Run Source Register Selectors and source Register Modifiers.
- Run instruction.
- Run Instruction Modifiers.
- 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.