GPU/Shader Instruction Set: Difference between revisions

Neobrain (talk | contribs)
The actual D3D shader token stream shows even more resemblance than the instruction mnemonics themselves.
Aroulin (talk | contribs)
Line 331: Line 331:
|  1u
|  1u
|  EX2
|  EX2
|  Computes SRC1's per-component exponent with base 2; DST[i] = EXP(SRC1[i]) for all i
|  Computes SRC1's first component exponent with base 2; DST[i] = EXP2(SRC1[0]) for all i
|-
|-
|  0x06
|  0x06
|  1u
|  1u
|  LG2
|  LG2
|  Computes SRC1's log2 component by component; DST[i] = LOG2(SRC1[i]) for all i
|  Computes SRC1's first component logarithm with base 2; DST[i] = LOG2(SRC1[0]) for all i
|-
|-
|  0x07
|  0x07