endloop: vs

Fin de un bucle... bloque endloop.

Sintaxis

endloop

 

Comentarios

Versiones del sombreador de vértices 1_1 2_0 2_x 2_sw 3_0 3_sw
endloop x x x x x

 

Esta instrucción funciona como se muestra aquí.

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

endloop debe seguir la última instrucción de un bucle: frente a bloque.

Ejemplo

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

Instrucciones del sombreador de vértices