Files
XCEngine/docs/api/d3d12/d3d12-command-list-clear-render-target.md

16 lines
300 B
Markdown
Raw Normal View History

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