diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2023-05-20 13:15:07 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-20 16:15:07 +0000 |
| commit | fb27042e01b0fa110184673d436ec96ec8cf20c7 (patch) | |
| tree | 7b36f237e5b022b41a48e352074e9cdc6651e785 /src/Ryujinx.Graphics.Gpu/Constants.cs | |
| parent | 69a9de33d37de03693a4a4f6f51aead63b0c6334 (diff) | |
Limit compute storage buffer size (#5028)
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Constants.cs')
| -rw-r--r-- | src/Ryujinx.Graphics.Gpu/Constants.cs | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Constants.cs b/src/Ryujinx.Graphics.Gpu/Constants.cs index 1897f5d0..b559edc2 100644 --- a/src/Ryujinx.Graphics.Gpu/Constants.cs +++ b/src/Ryujinx.Graphics.Gpu/Constants.cs @@ -41,22 +41,6 @@ namespace Ryujinx.Graphics.Gpu public const int TotalTransformFeedbackBuffers = 4; /// <summary> - /// Maximum number of textures on a single shader stage. - /// </summary> - /// <remarks> - /// The maximum number of textures is API limited, the hardware supports an unlimited amount. - /// </remarks> - public const int TotalTextures = 32; - - /// <summary> - /// Maximum number of images on a single shader stage. - /// </summary> - /// <remarks> - /// The maximum number of images is API limited, the hardware supports an unlimited amount. - /// </remarks> - public const int TotalImages = 8; - - /// <summary> /// Maximum number of render target color buffers. /// </summary> public const int TotalRenderTargets = 8; @@ -100,5 +84,15 @@ namespace Ryujinx.Graphics.Gpu /// Expected byte alignment for storage buffers /// </summary> public const int StorageAlignment = 16; + + /// <summary> + /// Number of the uniform buffer reserved by the driver to store the storage buffer base addresses. + /// </summary> + public const int DriverReservedUniformBuffer = 0; + + /// <summary> + /// Maximum size that an storage buffer is assumed to have when the correct size is unknown. + /// </summary> + public const ulong MaxUnknownStorageSize = 0x100000; } }
\ No newline at end of file |
