aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Constants.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2021-08-26 20:44:47 -0300
committerGitHub <noreply@github.com>2021-08-27 01:44:47 +0200
commitee1038e54255797a94b89091f4d59b77daad1a7b (patch)
tree5ea62d8a2bae97004a4abe2ebf0a21c634b912dc /Ryujinx.Graphics.Shader/Constants.cs
parentec3e848d7998038ce22c41acdbf81032bf47991f (diff)
Initial support for shader attribute indexing (#2546)
* Initial support for shader attribute indexing * Support output indexing too, other improvements * Fix order * Address feedback
Diffstat (limited to 'Ryujinx.Graphics.Shader/Constants.cs')
-rw-r--r--Ryujinx.Graphics.Shader/Constants.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/Constants.cs b/Ryujinx.Graphics.Shader/Constants.cs
new file mode 100644
index 00000000..86af48cf
--- /dev/null
+++ b/Ryujinx.Graphics.Shader/Constants.cs
@@ -0,0 +1,10 @@
+namespace Ryujinx.Graphics.Shader
+{
+ static class Constants
+ {
+ public const int ConstantBufferSize = 0x10000; // In bytes
+
+ public const int MaxAttributes = 16;
+ public const int AllAttributesMask = (int)(uint.MaxValue >> (32 - MaxAttributes));
+ }
+} \ No newline at end of file