rep - ps
Start a rep...endrep block.
Syntax
where i# is an integer register that specifies the repeat count in the .x component. See Constant Integer Register.
Remarks
Pixel shader versions | 1_1 | 1_2 | 1_3 | 1_4 | 2_0 | 2_x | 2_sw | 3_0 | 3_sw |
---|
rep | | | | | | x | x | x | x |
---|
- i#.x specifies the iteration count. The legal range is [0, 255].
- i#.yzw are not used by the repeat block.
- Repeat blocks may be nested. See Flow Control Limitations.
- Repeat blocks are allowed to be either completely inside an if* block or completely surrounding it. No straddling is allowed.
Example
rep i2
add r0, r0, c0
endrep