Shader Register Types
Collapse the table of content
Expand the table of content

Shader Register Types

Pixel and vertex shader operations specify register types in bits 28, 29, 30, 11, and 12 of destination and source parameter tokens. The following register types can be specified:

ValueRegister Type

D3DSPR_TEMP
(0)

Temporary register file

D3DSPR_INPUT
(1)

Input register file

D3DSPR_CONST
(2)

For PS, constant register file 0 - 2047 (DEF instruction)
For VS, reserved

D3DSPR_TEXTURE
D3DSPR_ADDR
(3)

For PS, texture register
For VS, address register (register number must be zero)

D3DSPR_RASTOUT
(4)

For PS, reserved
For VS, rasterizer output register file

D3DSPR_ATTROUT
(5)

For PS, reserved
For VS, attribute output register file

D3DSPR_TEXCRDOUT
D3DSPR_OUTPUT
(6)

For < VS 3_0, texture coordinate output register file
For >/= VS 3_0, output register file
For PS, reserved

D3DSPR_CONSTINT
(7)

Constant integer vector register file

D3DSPR_COLOROUT
(8)

Color output register file

D3DSPR_DEPTHOUT
(9)

Depth output register file

D3DSPR_SAMPLER
(10)

Sampler state register file

D3DSPR_CONST2
(11)

Constant register file 2048 - 4095

D3DSPR_CONST3
(12)

Constant register file 4096 - 6143

D3DSPR_CONST4
(13)

Constant register file 6144 - 8191

D3DSPR_CONSTBOOL
(14)

Constant Boolean register file

D3DSPR_LOOP
(15)

Loop counter register file

D3DSPR_TEMPFLOAT16
(16)

16-bit float temp register file

D3DSPR_MISCTYPE
(17)

Miscellaneous (single) register file

D3DSPR_LABEL
(18)

Label register file

D3DSPR_PREDICATE
(19)

Predicate register file

 

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft