Endloop – vs.

Ende einer Schleife... Endloop-Block.

Syntax

Endloop

 

Bemerkungen

Vertex-Shaderversionen 1_1 2_0 2_x 2_sw 3_0 3_sw
Endloop x x x x x

 

Diese Anweisung funktioniert wie hier gezeigt.

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

Endloop muss die letzte Anweisung einer Schleife im Vergleich zum Block befolgen.

Beispiel

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

Anweisungen zum Vertex-Shader