> ## 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](/reference/graphics/d3d12/structs/d3d12_meta_command_desc_public) の配列へのオプションのポインター。利用可能なメタ コマンドの数を <i>pNumMetaCommands</i> に返すようにするには `nullptr` を渡します。

### 戻り値

型: 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](/reference/graphics/d3d12/interfaces/id3d12device5/id3d12device5_public)


## Related topics

- [EnumerateMetaCommandParameters (XBOX Series 本体)](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_enumeratemetacommandparameters_public.md)
- [InitializeMetaCommand (XBOX Series 本体)](/ja-jp/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_initializemetacommand_public.md)
- [CreateMetaCommand (XBOX Series 本体)](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_createmetacommand_public.md)
- [CreateCommandList1 (XBOX Series 本体)](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_createcommandlist1_public.md)
- [CreateCommandQueue1 (XBOX Series 本体)](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device9/methods/id3d12device9_createcommandqueue1_public.md)
