?/TD>
Microsoft DirectX 9.0

Instruction Modifiers (Vertex Shader)


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.

add_sat rDest, rSrc0, rSrc1

Where:

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 versions1_12_02_x2_sw3_03_sw
_satxx


© 2002 Microsoft Corporation. All rights reserved.