GPU/Shader Instruction Set: Difference between revisions

Flacs (talk | contribs)
add DST/DSTI, LIT, BREAK
Line 333: Line 333:
|  0x04
|  0x04
|  1
|  1
???
DST
?
Equivalent with Microsoft's dst instruction: DST = {1, SRC1[1]*SRC2[1], SRC1[2], SRC2[3]}
|-
|-
|  0x05
|  0x05
Line 348: Line 348:
|  0x07
|  0x07
|  1u
|  1u
???
LIT
?
Related to Microsoft's lit instruction; DST = clamp(SRC1, min={0, -127.9961, 0, 0}, max={inf, 127.9961, 0, inf})
|-
|-
|  0x08
|  0x08
Line 438: Line 438:
|  0x19
|  0x19
|  1i
|  1i
???
DSTI
?
DST with sources swapped.
|-
|-
|  0x1A
|  0x1A
Line 472: Line 472:
|-
|-
|  0x20
|  0x20
?
0
???
BREAK
?
Breaks out of LOOP block; do not use while in nested IF/CALL block inside LOOP block.
|-
|-
|  0x21
|  0x21