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

# ExecuteCommandLists2X (XBOX Series 主機)

> ExecuteCommandLists2X (XBOX Series 主機) — 用於執行命令清單的 XBOX 延伸 API。適用於 XBOX 遊戲開發的 Direct3D 12 圖形 API 參考。

用於執行命令清單的 XBOX 延伸 API。

## 語法

```cpp theme={null}
void ExecuteCommandLists2X(  
        UINT Count,
        ID3D12CommandList* const* ppCommandLists,
        D3D12XBOX_FRAME_PIPELINE_TOKEN Token,
        D3D12XBOX_EXECUTE_COMMAND_LIST_FLAGS Flags)

)  
```

### 參數

*Count*   \_In\_\
類型：UINT

要執行的命令清單數目。

*ppCommandLists*   \_In\_reads\_(Count)\
類型：ID3D12CommandList\*

要執行的 ID3D12CommandList 命令清單陣列。

*Token*
類型：D3D12XBOX\_FRAME\_PIPELINE\_TOKEN

與此 Execute 所參與之畫面格相關聯的畫面格管線權杖。

*Flags*\
類型：D3D12XBOX\_EXECUTE\_COMMAND\_LIST\_FLAGS

用來變更啟動行為的旗標。

### 傳回值

類型：void

## 備註

* 注意：目前僅適用於圖形命令佇列。

## 需求

**標頭：** d3d12\_xs.h\
**程式庫：** d3d12\_xs.lib\
**支援的平台：** XBOX Series 主機

## 另請參閱

[ID3D12CommandQueue](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12commandqueue/id3d12commandqueue)


## Related topics

- [使用 GDKX 建置並執行你的第一個主機遊戲](/zh-TW/home/build-first-title/first-console-title-walkthrough.md)
- [XBOX Series X|S 總覽](/zh-TW/paths/series-xs/overview.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [Compile e execute seu primeiro título de console com o GDKX](/pt-BR/home/build-first-title/first-console-title-walkthrough.md)
- [XBOX 主機遊戲的認證測試 XBOX 需求](/zh-TW/publishing/certification/console-cert-tested-requirements.md)
