# D3D12CommandList::SetDepthBias ```cpp void SetDepthBias(float depthBias, float slopeScaledDepthBias, float depthBiasClamp); ``` 设置深度偏移。 **参数:** - `depthBias` - 基础深度偏移 - `slopeScaledDepthBias` - 斜率缩放深度偏移 - `depthBiasClamp` - 深度偏移上限 **复杂度:** O(1) ## 相关文档 - [D3D12CommandList 总览](command-list.md) - 返回类总览