Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX
SDK Documentation
DirectX Graphics
Direct3D 9
Reference
Vertex Shaders
 break_comp - vs

  Switch on low bandwidth view
break_comp - vs
Bb172366.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb172366.XDK_CHM_BANNER_right(en-us,VS.85).jpg

break_comp - vs

Conditionally break out of the current loop at the nearest endloop - vs or endrep - vs.

Syntax

break_comp src0, src1

Where:

  • _comp is a 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 to select a single component.
  • src1 is a source register. Replicate swizzle is required to select a single component.

Remarks

This instruction is supported in the following versions.

Vertex shader versions1_12_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;
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker