> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetGraphicsRootSignature

> 设置图形根签名的布局。

设置图形根签名的布局。

## 语法

```cpp theme={null}
void SetGraphicsRootSignature(
    ID3D12RootSignature  pRootSignature
)
```

### 参数

*pRootSignature \[in, optional]*\
类型：ID3D12RootSignature \*

指向 [ID3D12RootSignature](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/interfaces/id3d12rootsignature/id3d12rootsignature_public.md) 对象的指针。

### 返回值

类型：void

无。

## 要求

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

## 另请参阅

[ID3D12GraphicsCommandList](https://docs.xbox.com/zh-CN/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList/id3d12graphicscommandlist_xs.md)


## Related topics

- [SetComputeRootSignature](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputerootsignature_public.md)
- [SetGraphicsRootDescriptorTable](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setgraphicsrootdescriptortable_public.md)
- [SetGraphicsRootConstantBufferView](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setgraphicsrootconstantbufferview_public.md)
- [SetGraphicsRootShaderResourceView](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setgraphicsrootshaderresourceview_public.md)
- [SetGraphicsRootUnorderedAccessView](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setgraphicsrootunorderedaccessview_public.md)
