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

> 描述在根签名版本 1.0 中显示在着色器中的内联描述符。

描述在根签名版本 1.0 中显示在着色器中的内联描述符。

## 语法

```cpp theme={null}
typedef struct D3D12_ROOT_DESCRIPTOR
{
    UINT ShaderRegister;
    UINT RegisterSpace;
} D3D12_ROOT_DESCRIPTOR
```

### 成员

*ShaderRegister*\
类型：UINT

着色器寄存器。

*RegisterSpace*\
类型：UINT

寄存器空间。

## 备注

**D3D12\_ROOT\_DESCRIPTOR** 是 [D3D12\_ROOT\_PARAMETER](/reference/graphics/d3d12/structs/d3d12_root_parameter_public) 的 **Descriptor** 成员的数据类型。
当你将 **D3D12\_ROOT\_PARAMETER** 的 **ParameterType** 字段设置为 [D3D12\_ROOT\_PARAMETER\_TYPE](/reference/graphics/d3d12/enums/d3d12_root_parameter_type_public) 的 D3D12\_ROOT\_PARAMETER\_TYPE\_CBV、D3D12\_ROOT\_PARAMETER\_TYPE\_SRV 或 D3D12\_ROOT\_PARAMETER\_TYPE\_UAV 成员时，请使用 **D3D12\_ROOT\_DESCRIPTOR**。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅

[CD3DX12\_ROOT\_DESCRIPTOR](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-root-descriptor)

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

[D3D12\_ROOT\_DESCRIPTOR1](/reference/graphics/d3d12/structs/d3d12_root_descriptor1_public)

[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_ROOT_DESCRIPTOR1](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_descriptor1_public.md)
- [D3D12_ROOT_PARAMETER](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_parameter_public.md)
- [D3D12_ROOT_DESCRIPTOR_TABLE](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_descriptor_table_public.md)
- [D3D12_ROOT_DESCRIPTOR_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_root_descriptor_flags_public.md)
- [D3D12_ROOT_DESCRIPTOR_TABLE1](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_descriptor_table1_public.md)
