# D3D12CommandList::SetRenderTargetsHandle ```cpp void SetRenderTargetsHandle(uint32_t count, const D3D12_CPU_DESCRIPTOR_HANDLE* renderTargetHandles, const D3D12_CPU_DESCRIPTOR_HANDLE* depthStencilHandle = nullptr); ``` 使用描述符句柄设置渲染目标。 **参数:** - `count` - 渲染目标数量 - `renderTargetHandles` - 渲染目标描述符句柄数组 - `depthStencilHandle` - 深度模板描述符句柄 **复杂度:** O(n) ## 相关文档 - [D3D12CommandList 总览](command-list.md) - 返回类总览