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

# SetGraphicsRootDescriptorTable

> 在图形根签名中设置描述符表。

在图形根签名中设置描述符表。

## 语法

```cpp theme={null}
void SetGraphicsRootDescriptorTable(
    UINT RootParameterIndex,
    D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor
)
```

### 参数

*RootParameterIndex \[in]*\
类型：UINT

绑定的插槽号。

*BaseDescriptor \[in]*\
类型：D3D12\_GPU\_DESCRIPTOR\_HANDLE

要设置的基描述符的 GPU\_descriptor\_handle 对象。

### 返回值

类型：void

无。

## 要求

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

## 另请参阅

[ID3D12GraphicsCommandList](/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList/id3d12graphicscommandlist_xs)


## Related topics

- [D3D12_GPU_DESCRIPTOR_HANDLE](/zh-CN/reference/graphics/d3d12/structs/d3d12_gpu_descriptor_handle_public.md)
- [SetComputeRootDescriptorTable](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputerootdescriptortable_public.md)
- [D3D12_ROOT_DESCRIPTOR_TABLE](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_descriptor_table_public.md)
- [D3D12_ROOT_DESCRIPTOR_TABLE1](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_descriptor_table1_public.md)
- [D3D12_ROOT_PARAMETER](/zh-CN/reference/graphics/d3d12/structs/d3d12_root_parameter_public.md)
