ID3D12GraphicsCommandList::OMSetDepthBoundsX Method

Sets the depth bounds.

Syntax

public:
void OMSetDepthBoundsX(
         FLOAT Min,
         FLOAT Max
)  

Parameters

Min
Type: FLOAT 

[in] The minimum depth bounds. The default is 0.

Max
Type: FLOAT 

[in] The maximum depth bounds. The default is 1.

Return value

Type: void 

Returns nothing.

Remarks

This method sets the depth bounds. The defaults are 0 and 1. Pixels with depth outside of the depth range will be culled. From the May 2018 XDK onwards, depth bound testing is disabled by default on Direct3D 12.x. On all prior XDKs (April 2018 or earlier) depth bounds testing was enabled by default.

Requirements

Header: Declared in d3d12_x.h.

Library: Use d3d12_x.lib.

See also

Reference

ID3D12GraphicsCommandList Interface

ID3D12GraphicsCommandList Members