Instruction Modifiers

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.

For example:

add_sat dst, src0, src1


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 - vs, sincos - vs, and texldl - vs.

Vertex shader versions1_12_02_x2_sw3_03_sw


Related topics

Vertex Shader Instructions