GPU/Shader Instruction Set: Difference between revisions

Smea (talk | contribs)
Created page with "Category:GFX == Overview == Instructions are coded in little endian == Instruction formats == Format 1 : (used for register instructions) {| class="wikitable" border="1" |..."
 
Smea (talk | contribs)
Line 141: Line 141:
|}
|}


The component selector enables swizzling.
{| class="wikitable" border="1"
|-
!  Value
!  Component
|-
|  0x0
|  x
|-
|  0x1
|  y
|-
|  0x2
|  z
|-
|  0x3
|  w
|}
 
The component selector enables swizzling. For example, component selector 0x1B is equivalent to .xyzw, while 0x55 is equivalent to .yyyy.