aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-05-05 11:20:20 -0300
committerGitHub <noreply@github.com>2023-05-05 14:20:20 +0000
commitaa021085cfab10ab63a7e6c2f9c9e29b4111525c (patch)
treebbf192b3c321110fa6abd6f8bcd7c429119daa93 /src/Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs
parent1f5d8818609a82df893167a8ec5bd6ccda406c61 (diff)
Allow any shader SSBO constant buffer slot and offset (#2237)1.1.755
* Allow any shader SSBO constant buffer slot and offset * Fix slot value passed to SetUsedStorageBuffer on fallback case * Shader cache version * Ensure that the storage buffer source constant buffer offset is word aligned * Fix FirstBinding on GetUniformBufferDescriptors
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs b/src/Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs
index 774a128d..a81d0fc4 100644
--- a/src/Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs
+++ b/src/Ryujinx.Graphics.Shader/Translation/GlobalMemory.cs
@@ -16,6 +16,8 @@ namespace Ryujinx.Graphics.Shader.Translation
public const int UbeDescsSize = StorageDescSize * UbeMaxCount;
public const int UbeFirstCbuf = 8;
+ public const int DriverReservedCb = 0;
+
public static bool UsesGlobalMemory(Instruction inst, StorageKind storageKind)
{
return (inst.IsAtomic() && storageKind == StorageKind.GlobalMemory) ||