> ## 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 \*

指向一个或多个 [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) 类型值的组合，这些值使用按位或运算进行组合。
生成的值指定根签名布局的选项。

## 备注

此结构由 [D3D12SerializeRootSignature](/reference/graphics/d3d12/functions/d3d12serializerootsignature_public) 函数使用，
并由 [ID3D12RootSignatureDeserializer::GetRootSignatureDesc](/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)

[Core Structures](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)

[Creating a Root Signature](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)

[Using constants directly in the root signature](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/using-constants-directly-in-the-root-signature)

[Using descriptors 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-CN/reference/graphics/d3d12/structs/d3d12_versioned_root_signature_desc_public.md)
- [D3D12_ROOT_SIGNATURE_DESC1](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_signature_desc1_public.md)
- [D3D12CreateRootSignatureDeserializer](/zh-CN/reference/graphics/d3d12/functions/d3d12createrootsignaturedeserializer_public.md)
- [D3D12SerializeRootSignature](/zh-CN/reference/graphics/d3d12/functions/d3d12serializerootsignature_public.md)
- [CreateRootSignature](/zh-CN/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createrootsignature_public.md)
