DepthStencilState.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. namespace Ryujinx.Graphics.GAL
  2. {
  3. public struct DepthStencilState
  4. {
  5. public bool DepthTestEnable { get; }
  6. public bool DepthWriteEnable { get; }
  7. public bool StencilTestEnable { get; }
  8. public CompareOp DepthFunc { get; }
  9. public CompareOp StencilFrontFunc { get; }
  10. public StencilOp StencilFrontSFail { get; }
  11. public StencilOp StencilFrontDpPass { get; }
  12. public StencilOp StencilFrontDpFail { get; }
  13. public CompareOp StencilBackFunc { get; }
  14. public StencilOp StencilBackSFail { get; }
  15. public StencilOp StencilBackDpPass { get; }
  16. public StencilOp StencilBackDpFail { get; }
  17. public DepthStencilState(
  18. bool depthTestEnable,
  19. bool depthWriteEnable,
  20. bool stencilTestEnable,
  21. CompareOp depthFunc,
  22. CompareOp stencilFrontFunc,
  23. StencilOp stencilFrontSFail,
  24. StencilOp stencilFrontDpPass,
  25. StencilOp stencilFrontDpFail,
  26. CompareOp stencilBackFunc,
  27. StencilOp stencilBackSFail,
  28. StencilOp stencilBackDpPass,
  29. StencilOp stencilBackDpFail)
  30. {
  31. DepthTestEnable = depthTestEnable;
  32. DepthWriteEnable = depthWriteEnable;
  33. StencilTestEnable = stencilTestEnable;
  34. DepthFunc = depthFunc;
  35. StencilFrontFunc = stencilFrontFunc;
  36. StencilFrontSFail = stencilFrontSFail;
  37. StencilFrontDpPass = stencilFrontDpPass;
  38. StencilFrontDpFail = stencilFrontDpFail;
  39. StencilBackFunc = stencilBackFunc;
  40. StencilBackSFail = stencilBackSFail;
  41. StencilBackDpPass = stencilBackDpPass;
  42. StencilBackDpFail = stencilBackDpFail;
  43. }
  44. }
  45. }