# D3D12CommandList::ClearRenderTarget 清除渲染目标。 ```cpp void ClearRenderTarget(void* renderTarget, const float color[4]) override; ``` **参数:** - `renderTarget` - 渲染目标指针 - `color` - 清除颜色 RGBA ## 相关文档 - [D3D12CommandList 总览](d3d12-command-list.md)