> ## 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](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_parameter_public) 結構陣列。

*NumStaticSamplers*\
類型：UINT

指定靜態取樣器的數目。

*pStaticSamplers*\
類型：const D3D12\_STATIC\_SAMPLER\_DESC \*

指向一或多個 [D3D12\_STATIC\_SAMPLER\_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_static_sampler_desc_public) 結構的指標。

*Flags*\
類型：D3D12\_ROOT\_SIGNATURE\_FLAGS

使用位元 OR 運算組合的 [D3D12\_ROOT\_SIGNATURE\_FLAGS](/zh-TW/reference/graphics/d3d12_xs/enums/d3d12_root_signature_flags_xs) 類型值組合。
產生的值會指定根簽章配置的選項。

## 備註

此結構由 [D3D12SerializeRootSignature](/zh-TW/reference/graphics/d3d12/functions/d3d12serializerootsignature_public) 函式使用，
並由 [ID3D12RootSignatureDeserializer::GetRootSignatureDesc](/zh-TW/reference/graphics/d3d12/interfaces/id3d12rootsignaturedeserializer/methods/id3d12rootsignaturedeserializer_getrootsignaturedesc_public) 方法傳回。

有一個圖形根簽章和一個計算根簽章。

## 需求

**標頭:** 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](/zh-TW/reference/graphics/d3d12/enums/d3d12_root_parameter_type_public)

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

[D3D12\_VERSIONED\_ROOT\_SIGNATURE\_DESC](/zh-TW/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](/zh-TW/reference/graphics/d3d12/structs/d3d12_versioned_root_signature_desc_public.md)
- [D3D12_ROOT_SIGNATURE_DESC1](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_signature_desc1_public.md)
- [D3D12CreateRootSignatureDeserializer](/zh-TW/reference/graphics/d3d12/functions/d3d12createrootsignaturedeserializer_public.md)
- [D3D12SerializeRootSignature](/zh-TW/reference/graphics/d3d12/functions/d3d12serializerootsignature_public.md)
- [CreateRootSignature](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createrootsignature_public.md)
