endrep (Vertex Shader)
End of a repeat block.
Syntax
Remarks
Vertex shader versions | 1_1 | 2_0 | 2_x | 2_sw | 3_0 | 3_sw |
---|
endrep | | x | x | x | x | x |
---|
- rep uses integer registers (i#).
- endrep must follow the last instruction of a repeat block.
- The endrep offset must be greater than the rep instruction offset.
- Repeat loops cannot be nested.
- Repeat loops are allowed to be either completely inside an if block or completely surrounding it, no straddling is allowed.
- rep consumes one vertex shader instruction slot but must be used with endrep, which consumes another.
- The maximum loop iteration count is 255.
This instruction works as shown here.
LoopInterationCount = LoopIterationCount - 1;
if (LoopIterationCount > 0)
Continue execution at the StartLoopOffset
Minimum operating system | Windows 98 |
---|