Destination Parameter Token

A destination parameter token describes properties of a destination register and is composed of the following bits:

Bits

[10:00] Bits 0 through 10 indicate the register number (offset in register file).

[12:11] Bits 11 and 12 are the fourth and fifth bits [3,4] for indicating the register type.

[13] For vertex shader (VS) version 3_0 and later, bit 13 indicates whether relative addressing mode is used. If set to 1, relative addressing applies.

For all pixel shader (PS) versions and vertex shader versions earlier than 3_0, bit 13 is reserved and set to 0x0.

[15:14] Reserved. This value is set to 0x0.

[19:16] Write mask. The bits of this mask have the following components:

Bit Component

16

Component 0 (X;Red)

17

Component 1 (Y;Green)

18

Component 2 (Z;Blue)

19

Component 3 (W;Alpha)

[23:20] Bits 20 through 23 indicate the result modifier. Multiple result modifiers can be used. The following result modifier types can be ORed together in this 4-bit value:

Value Result modifier type

0x1

Saturate (vertex shaders)

0x2

Partial precision (pixel shaders)

0x4

Centroid (pixel shaders)

[27:24] For PS versions earlier than 2_0, bits 24 through 27 specify the result shift scale (signed shift). For PS version 2_0 and later and VS, these bits are reserved and set to 0x0. [30:28] Bits 28 through 30 are the first three bits [0,1,2] for indicating the register type.

[31] Bit 31 is 0x1.

Comments

Bits 28, 29, 30, 11, and 12 form a 5-bit value that indicates the register type. For information about register types, see Shader Register Types.

Requirements

Available in Windows Vista and later versions of the Windows operating systems.