Export (0) Print
Expand All

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:

  • _comp is a scalar (or single) comparison between the two source registers. It can be one of the following:
    SyntaxComparison
    _gtGreater than
    _ltLess than
    _geGreater than or equal
    _leLess than or equal
    _eqEqual to
    _neNot equal to

     

  • src0 is a source register. Replicate swizzle is required if selecting a single component.
  • src1 is a source register. Replicate swizzle is required if selecting a single component.

Remarks

This instruction is supported in the following versions.

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
break_compxxxx

 

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;


 

 

Community Additions

ADD
Show:
© 2015 Microsoft