Modifiers
Microsoft DirectX 9.0 SDK Update (October 2004)

Modifiers


Instruction modifiers affect the result of the instruction before it is written into the destination register.

_sat

Saturates (or clamps) the instruction result to [0,1] range before writing to the destination register.

For example:

add_sat dst, src0, src1

Where:

dst = clamp_between_0_and_1(src0 + src1)

The _sat instruction modifier costs no additional instruction slots.

If supported, the _sat instruction modifier can be used with any instruction except: frc, sincos, and texldl.

Vertex shader versions1_12_02_x2_sw3_03_sw
_satxx


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