CompareMode.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. return {
  2. summary = 'Different ways of performing comparisons.',
  3. description = [[
  4. The method used to compare depth and stencil values when performing the depth and stencil tests.
  5. Also used for compare modes in `Sampler`s.
  6. ]],
  7. values = {
  8. {
  9. name = 'none',
  10. description = 'The test does not take place, and acts as though it always passes.'
  11. },
  12. {
  13. name = 'equal',
  14. description = 'The test passes if the values are equal.'
  15. },
  16. {
  17. name = 'notequal',
  18. description = 'The test passes if the values are not equal.'
  19. },
  20. {
  21. name = 'less',
  22. description = 'The test passes if the value is less than the existing one.'
  23. },
  24. {
  25. name = 'lequal',
  26. description = 'The test passes if the value is less than or equal to the existing one.'
  27. },
  28. {
  29. name = 'greater',
  30. description = 'The test passes if the value is greater than the existing one.'
  31. },
  32. {
  33. name = 'gequal',
  34. description = 'The test passes if the value is greater than or equal to the existing one.'
  35. },
  36. },
  37. notes = [[
  38. This type can also be specified using mathematical notation, e.g. `=`, `>`, `<=`, etc.
  39. `notequal` can be provided as `~=` or `!=`.
  40. ]],
  41. related = {
  42. 'Pass:setDepthTest',
  43. 'Pass:setStencilTest',
  44. 'Pass:setDepthWrite',
  45. 'Pass:setStencilWrite'
  46. }
  47. }