?/TD>
Microsoft DirectX 9.0

loop (Pixel Shader)


Starts a loop...endloop block.

Syntax

loop aL, integerRegister

Where:

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
loopxx

Only integer registers may be used in this instruction The loop instruction is provided for iteration, and supports an auto-incremented loop counter register that can be used to index the constant array. When nested, any time the loop counter register is used, it refers to the current loop.

This instruction works as shown below.

StartLoopOffset = next instruction offset
LoopCounter      = IntegerReg.x
IterationCount   = IntegerReg.y
LoopStep         = InteferReg.z
if (IterationCounter <= 0)
  Continue execution after the next EndLoop instruction


© 2002 Microsoft Corporation. All rights reserved.