endloop - vs

循环结束...endloop 块。

语法

endloop

 

备注

顶点着色器版本 1_1 2_0 2_x 2_sw 3_0 3_sw
endloop x x x x x

 

此指令的工作方式如下所示。

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

endloop 必须遵循 循环 与块的最后一条指令。

示例

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

顶点着色器说明