# D3D12CommandList::ClearDepthStencil ```cpp void ClearDepthStencil(void* depthStencil, float depth, uint8_t stencil) override; ``` 清除深度模板。 **参数:** - `depthStencil` - 深度模板指针 - `depth` - 深度值 - `stencil` - 模板值 **复杂度:** O(1) ## 相关文档 - [D3D12CommandList 总览](command-list.md) - 返回类总览