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

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

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

## 语法

```cpp theme={null}
typedef struct D3D12_ROOT_DESCRIPTOR1
{
    UINT ShaderRegister;
    UINT RegisterSpace;
    D3D12_ROOT_DESCRIPTOR_FLAGS Flags;
} D3D12_ROOT_DESCRIPTOR1
```

### 成员

*ShaderRegister*\
类型：UINT

着色器寄存器。

*RegisterSpace*\
类型：UINT

寄存器空间。

*Flags*\
类型：D3D12\_ROOT\_DESCRIPTOR\_FLAGS

指定 [D3D12\_ROOT\_DESCRIPTOR\_FLAGS](/reference/graphics/d3d12/enums/d3d12_root_descriptor_flags_public)，用于确定描述符及其引用的数据的易变性。

## 备注

**D3D12\_ROOT\_DESCRIPTOR1** 是 [D3D12\_ROOT\_PARAMETER1](/reference/graphics/d3d12/structs/d3d12_root_parameter1_public) 的 **Descriptor** 成员的数据类型。
当你将 **D3D12\_ROOT\_PARAMETER1** 的 **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\_DESCRIPTOR1**。

请参阅辅助结构 [CD3DX12\_ROOT\_DESCRIPTOR1](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-root-descriptor1)。

## 要求

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

## 另请参阅

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

[D3D12\_ROOT\_DESCRIPTOR](/reference/graphics/d3d12/structs/d3d12_root_descriptor_public)

[Root Signature Version 1.1](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/root-signature-version-1-1)


## Related topics

- [D3D12_ROOT_DESCRIPTOR](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_descriptor_public.md)
- [D3D12_ROOT_PARAMETER1](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_parameter1_public.md)
- [D3D12_ROOT_DESCRIPTOR_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_root_descriptor_flags_public.md)
- [D3D12_ROOT_PARAMETER](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_parameter_public.md)
- [D3D12_ROOT_DESCRIPTOR_TABLE1](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_descriptor_table1_public.md)
