Sdílet prostřednictvím


Label Token

Token popisku se používá jenom pro určité operace (například D3DSIO_CALLNZ) 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.

[27:13] Reserved for all versions of pixel shader (PS) and vertex shader (VS). Tato hodnota je 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

Formát tokenu popisku je stejný jako token zdrojového parametru s tím rozdílem, že se použijí pouze pole s číslem registru a typem.

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. Typ registru pro token popisku musí být zadán jako D3DSPR_LABEL.

Požadavky

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