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

# EnumerateMetaCommands (XBOX Series 主機)

> 查詢可用中繼命令的反映中繼資料。

查詢可用中繼命令的反映中繼資料。

## 語法

```cpp theme={null}
HRESULT EnumerateMetaCommands(
    UINT  pNumMetaCommands,
    D3D12_META_COMMAND_DESC  pDescs
)
```

### 參數

*pNumMetaCommands*\
類型：UINT \*

指向 [UINT](https://learn.microsoft.com/en-us/windows/desktop/WinProg/windows-data-types) 的指標，其中包含要查詢的中繼命令數目。除非 <i>pDescs</i> 為 **nullptr**，否則此欄位會決定 <i>pDescs</i> 陣列的大小。

*pDescs*\
類型：D3D12\_META\_COMMAND\_DESC \*

選擇性的指標，指向包含可用中繼命令描述的 [D3D12\_META\_COMMAND\_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_meta_command_desc_public) 陣列。傳遞 `nullptr` 可在 <i>pNumMetaCommands</i> 中傳回可用中繼命令的數目。

### 傳回值

類型：HRESULT

如果此方法成功，則會傳回 **S\_OK**。否則會傳回 [HRESULT](https://learn.microsoft.com/en-us/windows/win32/com/structure-of-com-error-codes) 錯誤碼。

## 需求

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

## 另請參閱

[ID3D12Device5](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device5/id3d12device5_public)


## Related topics

- [EnumerateMetaCommandParameters (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_enumeratemetacommandparameters_public.md)
- [InitializeMetaCommand (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_initializemetacommand_public.md)
- [CreateMetaCommand (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_createmetacommand_public.md)
- [CreateCommandList1 (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_createcommandlist1_public.md)
- [CreateCommandQueue1 (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device9/methods/id3d12device9_createcommandqueue1_public.md)
