Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Break out of the current loop at the nearest endloop - ps or endrep - ps, based on a per-component comparison.
break_comp src0, src1 |
---|
Where:
_comp is a scalar (or single) comparison between the two source registers. It can be one of the following:
Syntax | Comparison |
---|---|
_gt | Greater than |
_lt | Less than |
_ge | Greater than or equal |
_le | Less than or equal |
_eq | Equal to |
_ne | Not 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.
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;
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today