GPU/Shader Instruction Set: Difference between revisions

Smea (talk | contribs)
proper LOOP !
Smea (talk | contribs)
LOOP adjustment after test
Line 470: Line 470:
|  3
|  3
|  FORLOOP
|  FORLOOP
|  Loops over the code between itself and DST. First sets lcnt to INT.y, then increments lcnt by INT.z after each loop. Stops looping once lcnt reaches INT.x. (INT is i0-i7, an integer vector uniform)
|  Loops over the code between itself and DST. First sets lcnt to INT.y, then increments lcnt by INT.z after each loop. Loops until lcnt reaches INT.y+INT.x, inclusive (that is : for(aL=INT.y;aL<=INT.y+INT.x;aL+=INT.z)). (INT is i0-i3, an integer vector uniform)
|-
|-
|  0x2A
|  0x2A