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

> 描述描述符表的根签名 1.0 布局，作为都相对于单个基描述符句柄的描述符范围集合。

描述描述符表的根签名 1.0 布局，作为都相对于单个基描述符句柄的描述符范围集合。

## 语法

```cpp theme={null}
typedef struct D3D12_ROOT_DESCRIPTOR_TABLE
{
    UINT NumDescriptorRanges;
    const D3D12_DESCRIPTOR_RANGE  pDescriptorRanges;
} D3D12_ROOT_DESCRIPTOR_TABLE
```

### 成员

*NumDescriptorRanges*\
类型：UINT

表布局中的描述符范围数。

*pDescriptorRanges*\
类型：const D3D12\_DESCRIPTOR\_RANGE \*

一个 [D3D12\_DESCRIPTOR\_RANGE](/reference/graphics/d3d12/structs/d3d12_descriptor_range_public) 结构数组，用于描述描述符范围。

## 备注

采样器不允许与常量缓冲区视图 (CBV)、无序访问视图 (UAV) 和着色器资源视图 (SRV) 位于同一描述符表中。

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

## 要求

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

## 另请参阅

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

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

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


## Related topics

- [D3D12_ROOT_DESCRIPTOR_TABLE1](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_descriptor_table1_public.md)
- [D3D12_DESCRIPTOR_RANGE](/zh-CN/reference/graphics/d3d12/structs/d3d12_descriptor_range_public.md)
- [D3D12_ROOT_PARAMETER](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_parameter_public.md)
- [D3D12_GPU_DESCRIPTOR_HANDLE](/zh-CN/reference/graphics/d3d12/structs/d3d12_gpu_descriptor_handle_public.md)
- [D3D12_ROOT_DESCRIPTOR](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_descriptor_public.md)
