# D3D12CommandList::ClearDepthStencil 清除深度模板缓冲区。 ```cpp void ClearDepthStencil(void* depthStencil, float depth, uint8_t stencil) override; ``` **参数:** - `depthStencil` - 深度模板目标指针 - `depth` - 深度值 - `stencil` - 模板值 ## 相关文档 - [D3D12CommandList 总览](d3d12-command-list.md)