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

# D3D12_COMPUTE_PIPELINE_STATE_DESC

> コンピューティング パイプライン状態オブジェクトを記述します。

コンピューティング パイプライン状態オブジェクトを記述します。

## 構文

```cpp theme={null}
typedef struct D3D12_COMPUTE_PIPELINE_STATE_DESC
{
    ID3D12RootSignature  pRootSignature;
    D3D12_SHADER_BYTECODE CS;
    UINT NodeMask;
    D3D12_CACHED_PIPELINE_STATE CachedPSO;
    D3D12_PIPELINE_STATE_FLAGS Flags;
} D3D12_COMPUTE_PIPELINE_STATE_DESC
```

### メンバー

*pRootSignature*\
型: ID3D12RootSignature \*

[ID3D12RootSignature](/reference/graphics/d3d12/interfaces/id3d12rootsignature/id3d12rootsignature_public) オブジェクトへのポインター。

*CS*\
型: D3D12\_SHADER\_BYTECODE

コンピューティング シェーダーを記述する [D3D12\_SHADER\_BYTECODE](/reference/graphics/d3d12/structs/d3d12_shader_bytecode_public) 構造体。

*NodeMask*\
型: UINT

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

*CachedPSO*\
型: D3D12\_CACHED\_PIPELINE\_STATE

キャッシュされたパイプライン状態オブジェクト ([D3D12\_CACHED\_PIPELINE\_STATE](/reference/graphics/d3d12/structs/d3d12_cached_pipeline_state_public) 構造体)。pCachedBlob と CachedBlobSizeInBytes はそれぞれ NULL と 0 に設定できます。

*Flags*\
型: D3D12\_PIPELINE\_STATE\_FLAGS

"tool debug" などの [D3D12\_PIPELINE\_STATE\_FLAGS](/reference/graphics/d3d12_xs/enums/d3d12_pipeline_state_flags_xs) 列挙定数。

## 解説

この構造体は [CreateComputePipelineState](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createcomputepipelinestate_public) で使用されます。

## 要件

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

## 関連項目

[コア構造体](https://learn.microsoft.com/en-us/windows/win32/direct3d12/direct3d-12-structures)


## Related topics

- [LoadComputePipeline](/ja-jp/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary/methods/id3d12pipelinelibrary_loadcomputepipeline_public.md)
- [CreateComputePipelineState](/ja-jp/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createcomputepipelinestate_public.md)
- [LoadPipeline](/ja-jp/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary1/methods/id3d12pipelinelibrary1_loadpipeline_public.md)
- [D3D12_SHADER_BYTECODE](/ja-jp/reference/graphics/d3d12/structs/d3d12_shader_bytecode_public.md)
- [D3D12_CACHED_PIPELINE_STATE](/ja-jp/reference/graphics/d3d12/structs/d3d12_cached_pipeline_state_public.md)
