2019-10-12 23:02:07 -07:00
|
|
|
namespace Ryujinx.Graphics.Gpu
|
|
|
|
{
|
2019-12-31 12:08:20 -08:00
|
|
|
/// <summary>
|
|
|
|
/// Common Maxwell GPU constants.
|
|
|
|
/// </summary>
|
2019-10-12 23:02:07 -07:00
|
|
|
static class Constants
|
|
|
|
{
|
2019-12-31 12:08:20 -08:00
|
|
|
/// <summary>
|
|
|
|
/// Maximum number of compute uniform buffers.
|
|
|
|
/// </summary>
|
2019-10-12 23:02:07 -07:00
|
|
|
public const int TotalCpUniformBuffers = 8;
|
2019-12-31 12:08:20 -08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Maximum number of compute storage buffers (this is a API limitation).
|
|
|
|
/// </summary>
|
2019-10-12 23:02:07 -07:00
|
|
|
public const int TotalCpStorageBuffers = 16;
|
2019-12-31 12:08:20 -08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Maximum number of graphics uniform buffers.
|
|
|
|
/// </summary>
|
2019-10-12 23:02:07 -07:00
|
|
|
public const int TotalGpUniformBuffers = 18;
|
2019-12-31 12:08:20 -08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Maximum number of graphics storage buffers (this is a API limitation).
|
|
|
|
/// </summary>
|
2019-10-12 23:02:07 -07:00
|
|
|
public const int TotalGpStorageBuffers = 16;
|
2019-12-31 12:08:20 -08:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Maximum number of render target color buffers.
|
|
|
|
/// </summary>
|
|
|
|
public const int TotalRenderTargets = 8;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Number of shader stages.
|
|
|
|
/// </summary>
|
|
|
|
public const int TotalShaderStages = 5;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Maximum number of vertex buffers.
|
|
|
|
/// </summary>
|
|
|
|
public const int TotalVertexBuffers = 16;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Maximum number of viewports.
|
|
|
|
/// </summary>
|
|
|
|
public const int TotalViewports = 8;
|
2019-10-12 23:02:07 -07:00
|
|
|
}
|
|
|
|
}
|