break_comp - ps

Break out of the current loop at the nearest endloop - ps or endrep - ps, based on a per-component comparison.

Syntax

break_comp src0, src1

Where:

Remarks

This instruction is supported in the following versions.

Pixel shader versions 1_1 1_2 1_3 1_4 2_0 2_x 2_sw 3_0 3_sw
break_comp x x x x

When the comparison is true, it breaks out of the current loop, as shown.

if (!(src0 comparison src1))
   jump to the corresponding endloop or endrep instruction;