endloop - vs

End of a loop...endloop block.

Syntax

endloop

 

Remarks

Vertex shader versions 1_1 2_0 2_x 2_sw 3_0 3_sw
endloop x x x x x

 

This instruction works as shown here.

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

endloop must follow the last instruction of a loop - vs block.

Example

loop aL, i3
    add r1, r0, c2[ aL ]
endloop

Vertex Shader Instructions