Constants.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. namespace Ryujinx.Graphics.Gpu
  2. {
  3. /// <summary>
  4. /// Common Maxwell GPU constants.
  5. /// </summary>
  6. static class Constants
  7. {
  8. /// <summary>
  9. /// Maximum number of compute uniform buffers.
  10. /// </summary>
  11. public const int TotalCpUniformBuffers = 8;
  12. /// <summary>
  13. /// Maximum number of compute storage buffers (this is an API limitation).
  14. /// </summary>
  15. public const int TotalCpStorageBuffers = 16;
  16. /// <summary>
  17. /// Maximum number of graphics uniform buffers.
  18. /// </summary>
  19. public const int TotalGpUniformBuffers = 18;
  20. /// <summary>
  21. /// Maximum number of graphics storage buffers (this is an API limitation).
  22. /// </summary>
  23. public const int TotalGpStorageBuffers = 16;
  24. /// <summary>
  25. /// Maximum number of render target color buffers.
  26. /// </summary>
  27. public const int TotalRenderTargets = 8;
  28. /// <summary>
  29. /// Number of shader stages.
  30. /// </summary>
  31. public const int ShaderStages = 5;
  32. /// <summary>
  33. /// Maximum number of vertex buffers.
  34. /// </summary>
  35. public const int TotalVertexBuffers = 16;
  36. /// <summary>
  37. /// Maximum number of viewports.
  38. /// </summary>
  39. public const int TotalViewports = 8;
  40. }
  41. }