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

# CreateGraphicsPipelineState

> グラフィックス パイプライン ステート オブジェクトを作成します。

グラフィックス パイプライン ステート オブジェクトを作成します。

## 構文

```cpp theme={null}
HRESULT CreateGraphicsPipelineState(
    const D3D12_GRAPHICS_PIPELINE_STATE_DESC  pDesc,
    const IID & riid,
    void  ppPipelineState
)
```

### パラメーター

*pDesc \[in]*\
型: const D3D12\_GRAPHICS\_PIPELINE\_STATE\_DESC \*

グラフィックス パイプライン ステートを記述する [D3D12\_GRAPHICS\_PIPELINE\_STATE\_DESC](/reference/graphics/d3d12_x/structs/d3d12_graphics_pipeline_state_desc) 構造体へのポインター。

*riid*\
型: const IID &

パイプライン ステート インターフェイス ([ID3D12PipelineState](/reference/graphics/d3d12_xs/interfaces/ID3D12PipelineState/id3d12pipelinestate_xs)) のグローバル一意識別子 (**GUID**)。
パイプライン ステートのインターフェイスの **REFIID** または **GUID** は、\_\_uuidof() マクロを使用して取得できます。
たとえば、\_\_uuidof(ID3D12PipelineState) は、パイプライン ステートのインターフェイスの **GUID** を取得します。

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

パイプライン ステート オブジェクトの [ID3D12PipelineState](/reference/graphics/d3d12_xs/interfaces/ID3D12PipelineState/id3d12pipelinestate_xs) インターフェイスへのポインターを受け取るメモリ ブロックへのポインター。
パイプライン ステート オブジェクトは、不変のステート オブジェクトです。メソッドは含まれていません。

### 戻り値

型: HRESULT

パイプライン ステート オブジェクトを作成するのに十分なメモリがない場合、このメソッドは **E\_OUTOFMEMORY** を返します。
その他の戻り値については、[Direct3D 12 の戻りコード](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/d3d12-graphics-reference-returnvalues) を参照してください。

## 要件

**ヘッダー:** d3d12\_xs.h または d3d12\_x.h\
**ライブラリ:** d3d12\_xs.lib または d3d12\_x.lib\
**サポートされているプラットフォーム**: XBOX Series 本体および XBOX One ファミリ

## 関連項目

[ID3D12Device](/reference/graphics/d3d12_x/interfaces/id3d12device/id3d12device)


## Related topics

- [CreateComputePipelineState](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createcomputepipelinestate_public.md)
- [D3D12_COMPUTE_PIPELINE_STATE_DESC](/ja-jp/reference/graphics/d3d12/structs/d3d12_compute_pipeline_state_desc_public.md)
- [SetPipelineState](/ja-jp/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setpipelinestate_public.md)
- [CreatePipelineLibrary](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_createpipelinelibrary_public.md)
- [LoadGraphicsPipeline](/ja-jp/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary/methods/id3d12pipelinelibrary_loadgraphicspipeline_public.md)
