Skip to content

Latest commit

 

History

History
79 lines (43 loc) · 1.01 KB

endloop---vs.md

File metadata and controls

79 lines (43 loc) · 1.01 KB
title description ms.assetid ms.topic ms.date topic_type api_name api_type api_location
endloop - vs
End of a loop...endloop block.
fd7df120-a927-4a66-b152-6ce5247446e4
reference
05/31/2018
apiref

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

Related topics

Vertex Shader Instructions