aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Constants.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2022-11-17 17:47:41 +0000
committerGitHub <noreply@github.com>2022-11-17 18:47:41 +0100
commit33a4d7d1badbebd2dc05114ef17c85678baed843 (patch)
treedbf7fd4adb24d59a5adceca6c0cc36099064f917 /Ryujinx.Graphics.Gpu/Constants.cs
parent391e08dd27661b72674f91450ac00d1363938251 (diff)
GPU: Eliminate CB0 accesses when storage buffer accesses are resolved (#3847)
* Eliminate CB0 accesses Still some work to do, decouple from hle? * Forgot the important part somehow * Fix and improve alignment test * Address Feedback * Remove some complexity when checking storage buffer alignment * Update Ryujinx.Graphics.Shader/Translation/Optimizations/GlobalToStorage.cs Co-authored-by: gdkchan <gab.dark.100@gmail.com> Co-authored-by: gdkchan <gab.dark.100@gmail.com>
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Constants.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Constants.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/Constants.cs b/Ryujinx.Graphics.Gpu/Constants.cs
index d580049f..1897f5d0 100644
--- a/Ryujinx.Graphics.Gpu/Constants.cs
+++ b/Ryujinx.Graphics.Gpu/Constants.cs
@@ -95,5 +95,10 @@ namespace Ryujinx.Graphics.Gpu
/// Byte alignment for block linear textures
/// </summary>
public const int GobAlignment = 64;
+
+ /// <summary>
+ /// Expected byte alignment for storage buffers
+ /// </summary>
+ public const int StorageAlignment = 16;
}
} \ No newline at end of file