Texture depth comparison function specified in D3D11X_SAMPLER_DESC.
typedef enum D3D11X_TEX_DEPTH_COMPARE
{
D3D11X_TEX_DEPTH_COMPARE_NEVER = 0,
D3D11X_TEX_DEPTH_COMPARE_LESS = 1,
D3D11X_TEX_DEPTH_COMPARE_EQUAL = 2,
D3D11X_TEX_DEPTH_COMPARE_LESSEQUAL = 3,
D3D11X_TEX_DEPTH_COMPARE_GREATER = 4,
D3D11X_TEX_DEPTH_COMPARE_NOTEQUAL = 5,
D3D11X_TEX_DEPTH_COMPARE_GREATEREQUAL = 6,
D3D11X_TEX_DEPTH_COMPARE_ALWAYS = 7
} D3D11X_TEX_DEPTH_COMPARE;
| Constant | Description |
|---|---|
| D3D11X_TEX_DEPTH_COMPARE_NEVER | Comparison always fails. |
| D3D11X_TEX_DEPTH_COMPARE_LESS | If the source data is less than the destination data, the comparison passes. |
| D3D11X_TEX_DEPTH_COMPARE_EQUAL | If the source data is equal to the destination data, the comparison passes. |
| D3D11X_TEX_DEPTH_COMPARE_LESSEQUAL | If the source data is less than or equal to the destination data, the comparison passes. |
| D3D11X_TEX_DEPTH_COMPARE_GREATER | If the source data is greater than the destination data, the comparison passes. |
| D3D11X_TEX_DEPTH_COMPARE_NOTEQUAL | If the source data is not equal to the destination data, the comparison passes. |
| D3D11X_TEX_DEPTH_COMPARE_GREATEREQUAL | If the source data is greater than or equal to the destination data, the comparison passes. |
| D3D11X_TEX_DEPTH_COMPARE_ALWAYS | Comparison always passes. |
Header: Declared in d3d11_x.h.