Sdílet prostřednictvím


Token cílového parametru

Token cílového parametru popisuje vlastnosti cílového registru a skládá se z následujících bitů:

Bity

[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.

Pro všechny verze shaderu pixelů (PS) a verze shaderu vrcholů starší než 3_0 je bit 13 rezervovaný a nastavený na 0x0.

[15:14] Reserved. Tato hodnota je nastavená na 0x0.

[19:16] Write mask. Bity této masky mají následující komponenty:

Bit Component

16

Součást 0 (X;červená)

17

Součást 1 (Y; Zelená)

18

Součást 2 (Z; Modrá)

19

Součást 3 (W; Alfa)

[23:20] Bits 20 through 23 indicate the result modifier. Lze použít více modifikátorů výsledků. Následující typy modifikátoru výsledků mohou být v této 4bitové hodnotě ORed společně:

Value Typ modifikátoru výsledku

0x1

Nasycení (shadery vrcholů)

0x2

Částečná přesnost (shadery pixelů)

0x4

Centroid (pixelové shadery)

[27:24] For PS versions earlier than 2_0, bits 24 through 27 specify the result shift scale (signed shift). Pro VERZI PS 2_0 a novější a VS jsou tyto bity rezervované a nastavené na 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.

komentáře k

Bity 28, 29, 30, 11 a 12 tvoří 5bitovou hodnotu, která označuje typ registru. Informace o typech registru naleznete v tématu Typy registru shaderu.

Požadavky

K dispozici v systémech Windows Vista a novějších verzích operačních systémů Windows.