?/TD>
Microsoft DirectX 9.0

endloop (Pixel Shader)


End of a loop...endloop block.

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
endloopxx

This instruction works as shown here.

LoopCounter += LoopStep;
LoopInterationCount = LoopIterationCount - 1;
if (LoopIterationCount > 0)
    Continue execution at the StartLoopOffset

The endloop instruction offset must be greater than the loop instruction offset.

The code block defined between the loop and endloop instructions does not consume additional instruction slots beyond those required to define it.



© 2002 Microsoft Corporation. All rights reserved.