ID3D12GraphicsCommandList::RSSetDepthBiasX Method

Overrides the current PSO depth bias options and sets new values.

Syntax

public:
void RSSetDepthBiasX(
         INT DepthBias,
         FLOAT DepthBiasClamp,
         FLOAT SlopeScaledDepthBias,
         BOOL DepthClipEnable
)  

Parameters

DepthBias
Type: INT 

[in] Overrides the current PSO DepthBias and sets a new depth bias added to a given pixel. For more information, see Depth Bias.

DepthBiasClamp
Type: FLOAT 

[in] Overrides the current PSO DepthBiasClamp and sets a new maximum depth bias of a pixel. For more information, see Depth Bias.

SlopeScaledDepthBias
Type: FLOAT 

[in] Overrides the current PSO SlopeScaledDepthBias and sets a new scalar on a given pixel’s slope. For more information, see Depth Bias.

DepthClipEnable
Type: BOOL 

[in] Overrides the current PSO DepthClipEnable option and sets a new one.

The hardware always performs x and y clipping of rasterized coordinates. When DepthClipEnable is true (default), the hardware also performs z clipping. That is, the hardware performs the last step of the following algorithm.

0 < w
-1 <= x <= w (or arbitrarily wider range if implementation uses a guard band to reduce clipping burden)
-1 <= y <= w (or arbitrarily wider range if implementation uses a guard band to reduce clipping burden)
0 <= z <= w  

When DepthClipEnable is false the hardware does not perform z clipping (the last step in the preceding algorithm), but still performs the first step, 0 < w. Incorrect depth ordering can result at a per-pixel level when z clipping is disabled, but certain graphic techniques like decals and stencil shadows can be implemented without complex special-case handling for geometry that goes beyond the back clipping plane.

Return value

None.

Remarks

The PSO depth bias options are established by the D3D12_RASTERIZER_DESC structure when the PSO is set. When RSSetDepthBiasX is called, the PSO depth bias settings are overridden until a new PSO is set.

Requirements

Header: Declared in d3d12_x.h.

Library: Use d3d12_x.lib.

See also

Reference

ID3D12GraphicsCommandList Interface

ID3D12GraphicsCommandList Members