宛先パラメーター トークンは、宛先レジスタのプロパティを記述し、次のビットで構成されます。
ビット
[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.
3_0 より前のすべてのピクセル シェーダー (PS) バージョンと頂点シェーダー バージョンでは、ビット 13 が予約され、0x0に設定されます。
[15:14] Reserved. この値は 0x0 に設定されます。
[19:16] Write mask. このマスクのビットには、次のコンポーネントがあります。
| Bit | Component |
|---|---|
16 |
コンポーネント 0 (X;赤) |
17 |
コンポーネント 1 (Y;緑) |
18 |
コンポーネント 2 (Z;青) |
19 |
コンポーネント 3 (W;アルファ) |
[23:20] Bits 20 through 23 indicate the result modifier. 複数の結果修飾子を使用できます。 次の結果修飾子の型は、この 4 ビット値でまとめて ORed にすることができます。
| Value | 結果修飾子の型 |
|---|---|
0x1 |
飽和 (頂点シェーダー) |
0x2 |
部分精度 (ピクセル シェーダー) |
0x4 |
重心 (ピクセル シェーダー) |
[27:24] For PS versions earlier than 2_0, bits 24 through 27 specify the result shift scale (signed shift). PS バージョン 2_0 以降および VS の場合、これらのビットは予約され、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.
コメント
ビット 28、29、30、11、および 12 は、レジスタの種類を示す 5 ビット値を形成します。 レジスタタイプの詳細については、「 シェーダーレジスタタイプ」を参照してください。
必要条件
Windows Vista 以降のバージョンの Windows オペレーティング システムで使用できます。