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

> Sets the layout of the graphics root signature.

Sets the layout of the graphics root signature.

## Syntax

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

### Parameters

*pRootSignature \[in, optional]*\
Type: ID3D12RootSignature \*

A pointer to the [ID3D12RootSignature](https://docs.xbox.com/reference/graphics/d3d12/interfaces/id3d12rootsignature/id3d12rootsignature_public.md) object.

### Return value

Type: void

None.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

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


## Related topics

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