PageRenderTime 41ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/Utilities/Graphics/DepthBufferMode.cs

#
C# | 41 lines | 14 code | 6 blank | 21 comment | 0 complexity | 1d3fb6ce947e4e20e29c9c3d5fc0402e MD5 | raw file
Possible License(s): Apache-2.0
  1. using System;
  2. namespace Delta.Utilities.Graphics
  3. {
  4. /// <summary>
  5. /// Which kind of depth Buffer is used on current platform
  6. /// </summary>
  7. [Flags]
  8. public enum DepthBufferMode
  9. {
  10. /// <summary>
  11. /// Use no depth buffer. (e.g. for 2D games)
  12. /// </summary>
  13. None = 0,
  14. /// <summary>
  15. /// Use a 16bit Depth Buffer
  16. /// </summary>
  17. BitDepth16 = 1,
  18. /// <summary>
  19. /// Use a 24bit Depth Buffer (usually +8 bit for stencil or unused)
  20. /// </summary>
  21. BitDepth24 = 2,
  22. /// <summary>
  23. /// Use a 32bit Depth Buffer
  24. /// </summary>
  25. BitDepth32 = 4,
  26. /// <summary>
  27. /// Use Floating point Z buffer
  28. /// </summary>
  29. FloatingPoint = 32,
  30. /// <summary>
  31. /// Use non linear
  32. /// </summary>
  33. NonLinearZ = 64,
  34. }
  35. }