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

# LoadGraphicsPipeline

> 要求された PSO をライブラリから取得します。

要求された PSO をライブラリから取得します。

## 構文

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

### パラメーター

*pName \[in]*\
型: LPCWSTR

PSO の一意の名前。

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

必要な PSO の記述を [D3D12\_GRAPHICS\_PIPELINE\_STATE\_DESC](/reference/graphics/d3d12_x/structs/d3d12_graphics_pipeline_state_desc) 構造体で指定します。この入力記述は現在のライブラリ データベース内のデータと照合され、PSO 内容の重複を防ぐために保存されます。

*riid*\
型: const IID &

[ID3D12PipelineState](/reference/graphics/d3d12_xs/interfaces/ID3D12PipelineState/id3d12pipelinestate_xs) オブジェクトの REFIID を指定します。通常、これと次のパラメーターはマクロ <code>IID\_PPV\_ARGS(\&PSO1)</code> を使用して設定します。ここで <i>PSO1</i> はオブジェクトの名前です。

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

返される PSO を参照するポインターを指定します。

### 戻り値

型: HRESULT

このメソッドは HRESULT の成功またはエラー コードを返します。名前が存在しない場合や入力記述がライブラリ内のデータと一致しない場合は E\_INVALIDARG、戻り PSO を割り当てられない場合は E\_OUTOFMEMORY を含む場合があります。

## 解説

[CreatePipelineLibrary](/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_createpipelinelibrary_public) の解説と例を参照してください。

## 要件

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

## 関連項目

[ID3D12PipelineLibrary](/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary/id3d12pipelinelibrary_public)


## Related topics

- [LoadPipeline](/ja-jp/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary1/methods/id3d12pipelinelibrary1_loadpipeline_public.md)
- [CreatePipelineLibrary](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_createpipelinelibrary_public.md)
- [LoadComputePipeline](/ja-jp/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary/methods/id3d12pipelinelibrary_loadcomputepipeline_public.md)
- [Load](/ja-jp/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_load.md)
- [CreateGraphicsPipelineState](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_creategraphicspipelinestate_public.md)
