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

## 備註

取樣器不能與常數緩衝區檢視 (CBV)、無序存取檢視 (UAV) 和著色器資源檢視 (SRV) 位於相同的描述元表格中。

**D3D12\_ROOT\_DESCRIPTOR\_TABLE** 是
[D3D12\_ROOT\_PARAMETER](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_parameter_public) 的
**DescriptorTable** 成員的資料類型。
當您將 **D3D12\_ROOT\_PARAMETER** 的 **ParameterType** 成員設定為 [D3D12\_ROOT\_PARAMETER\_TYPE\_DESCRIPTOR\_TABLE](/zh-TW/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)

[核心結構](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)

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


## Related topics

- [D3D12_ROOT_DESCRIPTOR_TABLE1](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_descriptor_table1_public.md)
- [D3D12_DESCRIPTOR_RANGE](/zh-TW/reference/graphics/d3d12/structs/d3d12_descriptor_range_public.md)
- [D3D12_ROOT_PARAMETER](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_parameter_public.md)
- [D3D12_GPU_DESCRIPTOR_HANDLE](/zh-TW/reference/graphics/d3d12/structs/d3d12_gpu_descriptor_handle_public.md)
- [D3D12_ROOT_PARAMETER1](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_parameter1_public.md)
