aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Shader/ShaderConfig.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics/Shader/ShaderConfig.cs')
-rw-r--r--Ryujinx.Graphics/Shader/ShaderConfig.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Shader/ShaderConfig.cs b/Ryujinx.Graphics/Shader/ShaderConfig.cs
new file mode 100644
index 00000000..c2a94814
--- /dev/null
+++ b/Ryujinx.Graphics/Shader/ShaderConfig.cs
@@ -0,0 +1,23 @@
+using Ryujinx.Graphics.Gal;
+using System;
+
+namespace Ryujinx.Graphics.Shader
+{
+ public struct ShaderConfig
+ {
+ public GalShaderType Type { get; }
+
+ public int MaxCBufferSize;
+
+ public ShaderConfig(GalShaderType type, int maxCBufferSize)
+ {
+ if (maxCBufferSize <= 0)
+ {
+ throw new ArgumentOutOfRangeException(nameof(maxCBufferSize));
+ }
+
+ Type = type;
+ MaxCBufferSize = maxCBufferSize;
+ }
+ }
+} \ No newline at end of file