Files
XCEngine/docs/api/rhi/d3d12/command-list/set-depth-bias.md

29 lines
625 B
Markdown
Raw Normal View History

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