|Microsoft DirectX 9.0|
Instruction modifiers affect the result of the instruction before it is written into the destination register.
Saturates or clamps the instruction result to [0,1] range before writing to the destination register.
add_sat rDest, rSrc0, rSrc1
rDest = clamp_between_0_and_1(rSrc0 + rSrc1).
The saturate instruction modifier costs no additional instruction slots.
The _sat instruction modifier can be used with any arithmetic instruction (including macro-ops), except the frc and sincos instructions.
_sat cannot be used with texture addressing instructions texld* and texkill.
_sat cannot be used with instructions writing to output o# registers.
|Vertex shader versions||1_1||2_0||2_x||2_sw||3_0||3_sw|