ID3D11DeviceContextX::SetPixelShaderDepthForceZOrder Method

Sets pixel shader depth force Z-order. Enforces the shader setting.

Syntax

public:
void SetPixelShaderDepthForceZOrder(
         BOOL ForceOrder
)  

Parameters

ForceOrder
Type: BOOL 

[in] If true, forces Z-order.

Return value

None.

Remarks

Some rendering passes may benefit from RE_Z order in the pixel shader. RE_Z is when a depth test is performed before and after the pixel shader is run. It shows benefit on foliage, grass, alpha-tested billboard geometry, especially when writing into a fat GBuffer or if the pixel shader is sufficiently long (greater than 1500 clock cycles).

The following shader #defines enforce one of the four available modes on the shader:

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11DeviceContextX Interface

ID3D11DeviceContextX Members