# D3D12CommandList::SetRenderTargets 设置渲染目标。 ```cpp void SetRenderTargets(uint32_t count, void** renderTargets, void* depthStencil = nullptr) override; ``` **参数:** - `count` - 渲染目标数量 - `renderTargets` - 渲染目标指针数组 - `depthStencil` - 可选的深度模板目标 ## 相关文档 - [D3D12CommandList 总览](d3d12-command-list.md)