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

> ルート署名バージョン 1.0 のレイアウトを記述します。

ルート署名バージョン 1.0 のレイアウトを記述します。

## 構文

```cpp theme={null}
typedef struct D3D12_ROOT_SIGNATURE_DESC
{
    UINT NumParameters;
    const D3D12_ROOT_PARAMETER  pParameters;
    UINT NumStaticSamplers;
    const D3D12_STATIC_SAMPLER_DESC  pStaticSamplers;
    D3D12_ROOT_SIGNATURE_FLAGS Flags;
} D3D12_ROOT_SIGNATURE_DESC
```

### メンバー

*NumParameters*\
型: UINT

ルート署名内のスロットの数。この数は <i>pParameters</i> 配列の要素数でもあります。

*pParameters*\
型: const D3D12\_ROOT\_PARAMETER \*

ルート署名内のスロット用の [D3D12\_ROOT\_PARAMETER](/reference/graphics/d3d12/structs/d3d12_root_parameter_public) 構造体の配列。

*NumStaticSamplers*\
型: UINT

静的サンプラーの数を指定します。

*pStaticSamplers*\
型: const D3D12\_STATIC\_SAMPLER\_DESC \*

1 つ以上の [D3D12\_STATIC\_SAMPLER\_DESC](/reference/graphics/d3d12/structs/d3d12_static_sampler_desc_public) 構造体へのポインター。

*Flags*\
型: D3D12\_ROOT\_SIGNATURE\_FLAGS

[D3D12\_ROOT\_SIGNATURE\_FLAGS](/reference/graphics/d3d12_xs/enums/d3d12_root_signature_flags_xs) 型の値をビットごとの OR 演算で組み合わせた値。
結果として得られる値によって、ルート署名のレイアウトのオプションが指定されます。

## 解説

この構造体は、[D3D12SerializeRootSignature](/reference/graphics/d3d12/functions/d3d12serializerootsignature_public) 関数によって使用され、
[ID3D12RootSignatureDeserializer::GetRootSignatureDesc](/reference/graphics/d3d12/interfaces/id3d12rootsignaturedeserializer/methods/id3d12rootsignaturedeserializer_getrootsignaturedesc_public) メソッドによって返されます。

グラフィックス ルート署名と、コンピューティング ルート署名がそれぞれ 1 つずつあります。

## 要件

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

## 関連項目

[CD3DX12\_ROOT\_SIGNATURE\_DESC](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-root-signature-desc)

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

[ルート署名の作成](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/creating-a-root-signature)

[D3D12\_ROOT\_PARAMETER\_TYPE](/reference/graphics/d3d12/enums/d3d12_root_parameter_type_public)

[D3D12\_ROOT\_SIGNATURE\_DESC1](/reference/graphics/d3d12/structs/d3d12_root_signature_desc1_public)

[D3D12\_VERSIONED\_ROOT\_SIGNATURE\_DESC](/reference/graphics/d3d12/structs/d3d12_versioned_root_signature_desc_public)

[ルート署名内で定数を直接使用する](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/using-constants-directly-in-the-root-signature)

[ルート署名内で記述子を直接使用する](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/using-descriptors-directly-in-the-root-signature)


## Related topics

- [D3D12_VERSIONED_ROOT_SIGNATURE_DESC](/ja-jp/reference/graphics/d3d12/structs/d3d12_versioned_root_signature_desc_public.md)
- [D3D12_ROOT_SIGNATURE_DESC1](/ja-jp/reference/graphics/d3d12/structs/d3d12_root_signature_desc1_public.md)
- [D3D12CreateRootSignatureDeserializer](/ja-jp/reference/graphics/d3d12/functions/d3d12createrootsignaturedeserializer_public.md)
- [ID3D12RootSignatureDeserializer](/ja-jp/reference/graphics/d3d12/interfaces/id3d12rootsignaturedeserializer/id3d12rootsignaturedeserializer_public.md)
- [D3D12SerializeRootSignature](/ja-jp/reference/graphics/d3d12/functions/d3d12serializerootsignature_public.md)
