D3D12_COMPARISON_FUNC Enumeration

Specifies comparison options.

Syntax

typedef enum D3D12_COMPARISON_FUNC {
  D3D12_COMPARISON_FUNC_NEVER,
  D3D12_COMPARISON_FUNC_LESS,
  D3D12_COMPARISON_FUNC_EQUAL,
  D3D12_COMPARISON_FUNC_LESS_EQUAL,
  D3D12_COMPARISON_FUNC_GREATER,
  D3D12_COMPARISON_FUNC_NOT_EQUAL,
  D3D12_COMPARISON_FUNC_GREATER_EQUAL,
  D3D12_COMPARISON_FUNC_ALWAYS
} ;

Constants

D3D12_COMPARISON_FUNC_NEVER Never pass the comparison.
D3D12_COMPARISON_FUNC_LESS If the source data is less than the destination data, the comparison passes.
D3D12_COMPARISON_FUNC_EQUAL If the source data is equal to the destination data, the comparison passes.
D3D12_COMPARISON_FUNC_LESS_EQUAL If the source data is less than or equal to the destination data, the comparison passes.
D3D12_COMPARISON_FUNC_GREATER If the source data is greater than the destination data, the comparison passes.
D3D12_COMPARISON_FUNC_NOT_EQUAL If the source data is not equal to the destination data, the comparison passes.
D3D12_COMPARISON_FUNC_GREATER_EQUAL If the source data is greater than or equal to the destination data, the comparison passes.
D3D12_COMPARISON_FUNC_ALWAYS Always pass the comparison.

Remarks

A comparison option determines how the runtime compares source (new) data against destination (existing) data before storing the new data. The comparison option is declared in a description before an object is created. The API allows you to set a comparison option for

Requirements

   
Header d3d12.h

See Also

CD3DX12_DEPTH_STENCIL_DESC

Core Enumerations