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

# CreateMetaCommand (XBOX Series 本体)

> 指定されたメタ コマンドのインスタンスを作成します。

指定されたメタ コマンドのインスタンスを作成します。

## 構文

```cpp theme={null}
HRESULT CreateMetaCommand(
    const GUID & CommandId,
    UINT NodeMask,
    const void  pCreationParametersData,
    SIZE_T CreationParametersDataSizeInBytes,
    const IID & riid,
    void  ppMetaCommand
)
```

### パラメーター

*CommandId \[in]*\
型: const GUID &

インスタンス化するメタ コマンドのグローバル一意識別子 (GUID) への参照。

*NodeMask \[in]*\
型: UINT

シングル アダプター動作の場合は 0 に設定します。複数のアダプター ノードがある場合は、メタ コマンドが適用されるノード (デバイスの物理アダプターの 1 つ) を識別するビットを設定します。マスクの各ビットは 1 つのノードに対応します。設定できるビットは 1 つだけです。[マルチアダプター システム](https://learn.microsoft.com/en-us/windows/win32/direct3d12/multi-engine) を参照してください。

*pCreationParametersData \[in, optional]*\
型: const void \*

メタ コマンドを作成するためのパラメーターの値を含む定数構造体へのオプションのポインター。

*CreationParametersDataSizeInBytes \[in]*\
型: SIZE\_T

<i>pCreationParametersData</i> が設定されている場合、それが指す構造体のサイズを含む [SIZE\_T](https://learn.microsoft.com/en-us/windows/win32/WinProg/windows-data-types)。設定されていない場合は 0。

*riid*\
型: const IID &

<i>ppMetaCommand</i> に返すインターフェイスのグローバル一意識別子 (GUID) への参照。これは [ID3D12MetaCommand](/reference/graphics/d3d12/interfaces/id3d12metacommand/id3d12metacommand_public) の GUID であることが想定されます。

*ppMetaCommand \[out]*\
型: void \*\*

メタ コマンドへのポインターを受け取るメモリ ブロックへのポインター。これは、作成されたメタ コマンドを表す [ID3D12MetaCommand](/reference/graphics/d3d12/interfaces/id3d12metacommand/id3d12metacommand_public) へのポインターのアドレスです。

### 戻り値

型: HRESULT

このメソッドが成功した場合は **S\_OK** を返します。それ以外の場合は **HRESULT** エラー コードを返します。

<table>
  <tr>
    <th>戻り値</th>
    <th>説明</th>
  </tr>

  <tr>
    <td width="40%">
      <dl>
        <dt>DXGI\_ERROR\_UNSUPPORTED</dt>
      </dl>
    </td>

    <td width="60%">
      現在のハードウェアは、要求されているアルゴリズムをサポートしていません
    </td>
  </tr>
</table>

## 要件

**ヘッダー:** d3d12\_xs.h\
**ライブラリ:** d3d12\_xs.lib\
**サポートされるプラットフォーム**: XBOX Series 本体

## 関連項目

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


## Related topics

- [InitializeMetaCommand (XBOX Series 本体)](/ja-jp/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist4/methods/id3d12graphicscommandlist4_initializemetacommand_public.md)
- [EnumerateMetaCommands (XBOX Series 本体)](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_enumeratemetacommands_public.md)
- [EnumerateMetaCommandParameters (XBOX Series 本体)](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_enumeratemetacommandparameters_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)
