From fb27042e01b0fa110184673d436ec96ec8cf20c7 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 20 May 2023 13:15:07 -0300 Subject: Limit compute storage buffer size (#5028) --- src/Ryujinx.Graphics.Gpu/Constants.cs | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'src/Ryujinx.Graphics.Gpu/Constants.cs') 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 @@ -40,22 +40,6 @@ namespace Ryujinx.Graphics.Gpu /// public const int TotalTransformFeedbackBuffers = 4; - /// - /// Maximum number of textures on a single shader stage. - /// - /// - /// The maximum number of textures is API limited, the hardware supports an unlimited amount. - /// - public const int TotalTextures = 32; - - /// - /// Maximum number of images on a single shader stage. - /// - /// - /// The maximum number of images is API limited, the hardware supports an unlimited amount. - /// - public const int TotalImages = 8; - /// /// Maximum number of render target color buffers. /// @@ -100,5 +84,15 @@ namespace Ryujinx.Graphics.Gpu /// Expected byte alignment for storage buffers /// public const int StorageAlignment = 16; + + /// + /// Number of the uniform buffer reserved by the driver to store the storage buffer base addresses. + /// + public const int DriverReservedUniformBuffer = 0; + + /// + /// Maximum size that an storage buffer is assumed to have when the correct size is unknown. + /// + public const ulong MaxUnknownStorageSize = 0x100000; } } \ No newline at end of file -- cgit v1.2.3