Label Token

A label token is only used for certain operations (for example, D3DSIO_CALLNZ) 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.

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

The format of the label token is the same as the source parameter token except that only the register number and type fields are used.

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. The register type for a label token must be specified as D3DSPR_LABEL.

Requirements

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