# D3D12CommandList::SetRootSignature ```cpp void SetRootSignature(ID3D12RootSignature* signature); ``` 设置根签名。 **参数:** - `signature` - D3D12 根签名指针 **复杂度:** O(1) ## 相关文档 - [D3D12CommandList 总览](command-list.md) - 返回类总览