aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/StructuredIr/ShaderProperties.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-05-20 16:19:26 -0300
committerGitHub <noreply@github.com>2023-05-20 16:19:26 -0300
commit402f05b8ef013807997589ecc0a8ff50267dcd23 (patch)
tree8e3b06c2ce3e3ccd4b443a4c68365251acc668fa /src/Ryujinx.Graphics.Shader/StructuredIr/ShaderProperties.cs
parentfb27042e01b0fa110184673d436ec96ec8cf20c7 (diff)
Replace constant buffer access on shader with new Load instruction (#4646)1.1.811
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/StructuredIr/ShaderProperties.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/StructuredIr/ShaderProperties.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.Shader/StructuredIr/ShaderProperties.cs b/src/Ryujinx.Graphics.Shader/StructuredIr/ShaderProperties.cs
new file mode 100644
index 00000000..061c89ed
--- /dev/null
+++ b/src/Ryujinx.Graphics.Shader/StructuredIr/ShaderProperties.cs
@@ -0,0 +1,21 @@
+using System.Collections.Generic;
+
+namespace Ryujinx.Graphics.Shader.StructuredIr
+{
+ class ShaderProperties
+ {
+ private readonly Dictionary<int, BufferDefinition> _constantBuffers;
+
+ public IReadOnlyDictionary<int, BufferDefinition> ConstantBuffers => _constantBuffers;
+
+ public ShaderProperties()
+ {
+ _constantBuffers = new Dictionary<int, BufferDefinition>();
+ }
+
+ public void AddConstantBuffer(int binding, BufferDefinition definition)
+ {
+ _constantBuffers[binding] = definition;
+ }
+ }
+} \ No newline at end of file