# D3D12CommandList::SetDepthBias ```cpp void SetDepthBias(float depthBias, float slopeScaledDepthBias, float depthBiasClamp); ``` 设置深度偏移。 **参数:** - `depthBias` - 基础深度偏移 - `slopeScaledDepthBias` - 斜率缩放深度偏移 - `depthBiasClamp` - 深度偏移上限 **复杂度:** O(1) **注意:** 当前实现为空,深度偏移通过管线状态对象设置。 **示例:** ```cpp // 深度偏移参数通常在 PSO 中设置 // 此方法当前为空实现 cmdList.SetDepthBias(0.0f, 0.0f, 0.0f); ``` ## 相关文档 - [D3D12CommandList 总览](command-list.md) - 返回类总览