LiteFX::Rendering::CompareOperation¶
Describes the operation used to compare depth or stencil values during depth/stencil tests.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
enum class CompareOperation : int;
Members¶
| Name | Description |
|---|---|
Never | The test always fails. |
Less | The test succeeds, if the current value is less than the stencil ref or previous depth value. |
Greater | The test succeeds, if the current value is greater than the stencil ref or previous depth value. |
Equal | The test succeeds, if the current value is equal to the stencil ref or previous depth value. |
LessEqual | The test succeeds, if the current value is less or equal to the stencil ref or previous depth value. |
GreaterEqual | The test succeeds, if the current value is greater or equal to the stencil ref or previous depth value. |
NotEqual | The test succeeds, if the current value is not equal to the stencil ref or previous depth value. |
Always | The test always succeeds. |
See Also¶
DepthStencilState