CompareMode
EditThe method used to compare depth and stencil values when performing the depth and stencil tests. Also used for compare modes in Samplers.
| Value | Description |
| none | The test does not take place, and acts as though it always passes. |
| equal | The test passes if the values are equal. |
| notequal | The test passes if the values are not equal. |
| less | The test passes if the value is less than the existing one. |
| lequal | The test passes if the value is less than or equal to the existing one. |
| greater | The test passes if the value is greater than the existing one. |
| gequal | The test passes if the value is greater than or equal to the existing one. |
Notes
This type can also be specified using mathematical notation, e.g. =, >, <=, etc. notequal can be provided as ~= or !=.