> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D3D12XBOX_DESCRIPTOR_PIPELINE_STATE (XBOX One 系列)

> D3D12XBOX_DESCRIPTOR_PIPELINE_STATE (XBOX One 系列主機) — 用於設定管線狀態物件的命令處理器封包描述元。

用於設定管線狀態物件的命令處理器封包描述元。此結構由 **ID3D12PipelineState::GetDescriptorX** 輸出。

## 語法

```cpp theme={null}
typedef struct D3D12XBOX_DESCRIPTOR_PIPELINE_STATE {  
    union  
    {  
        struct
        {  
            UINT32 Data[6];  
        };  
        struct
        {  
            UINT32 Header;  
            UINT32 ContextHash;  
            UINT32 Data2;  
            UINT32 Data3;  
            UINT32 Data4;  
            UINT32 Data5;  
        };  
    };  
} D3D12XBOX_DESCRIPTOR_PIPELINE_STATE  
```

### 成員

*Data*\
類型: UINT32\[6]

用於設定管線狀態物件的不透明資料陣列。保留；請勿修改此欄位。

*Header*\
類型: UINT32

GPU 命令處理器封包的封包標頭。保留；請勿修改此欄位。

*ContextHash*\
類型: UINT32

用於執行 GPU 排序的內容雜湊，藉此完美地將內容切換降至最低。此欄位僅與圖形管線狀態物件相關，與計算無關。

*Data2*\
類型: UINT32

保留；請勿修改此欄位。

*Data3*\
類型: UINT32

保留；請勿修改此欄位。

*Data4*\
類型: UINT32

保留；請勿修改此欄位。

*Data5*\
類型: UINT32

保留；請勿修改此欄位。

## 備註

此結構由 [GetDescriptorX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12pipelinestate/methods/id3d12pipelinestate_getdescriptorx) 輸出。

此結構包含一個含有 6 個值的單一陣列，或是一個標頭、內容雜湊和 4 個值。

這是用於設定管線狀態物件的命令處理器封包描述元。此結構無法離線預先建立。若要取得執行個體，請在執行階段呼叫 [GetDescriptorX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12pipelinestate/methods/id3d12pipelinestate_getdescriptorx)，從 Direct3D 建立的管線狀態物件查詢。

*ContextHash* 欄位搭配 [ExecuteIndirect](https://learn.microsoft.com/en-us/windows/desktop/api/d3d12/nf-d3d12-id3d12graphicscommandlist-executeindirect) 或 [ExecuteIndirectBundleX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_executeindirectbundlex) 使用，可執行 GPU 排序，藉此完美地將內容切換降至最低。*ContextHash* 僅與圖形管線狀態物件相關，與計算無關。

## 需求

**標頭:** d3d12\_x.h

**支援的平台:** XBOX One 系列

## 另請參閱

[d3d12\_x](/zh-TW/reference/graphics/d3d12_x/d3d12_x_members)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [Diretório de tópicos NDA: links ativos do Microsoft Learn](/pt-BR/nda/nda-topic-directory.md)
- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr/nda/nda-topic-directory.md)
- [Directorio de temas NDA: enlaces activos a Microsoft Learn](/es/nda/nda-topic-directory.md)
