aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/StructuredIr/StructureType.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/StructureType.cs
parentfb27042e01b0fa110184673d436ec96ec8cf20c7 (diff)
Replace constant buffer access on shader with new Load instruction (#4646)
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/StructuredIr/StructureType.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/StructuredIr/StructureType.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.Shader/StructuredIr/StructureType.cs b/src/Ryujinx.Graphics.Shader/StructuredIr/StructureType.cs
new file mode 100644
index 00000000..17f49738
--- /dev/null
+++ b/src/Ryujinx.Graphics.Shader/StructuredIr/StructureType.cs
@@ -0,0 +1,28 @@
+using Ryujinx.Graphics.Shader.Translation;
+
+namespace Ryujinx.Graphics.Shader.StructuredIr
+{
+ struct StructureField
+ {
+ public AggregateType Type { get; }
+ public string Name { get; }
+ public int ArrayLength { get; }
+
+ public StructureField(AggregateType type, string name, int arrayLength = 1)
+ {
+ Type = type;
+ Name = name;
+ ArrayLength = arrayLength;
+ }
+ }
+
+ class StructureType
+ {
+ public StructureField[] Fields { get; }
+
+ public StructureType(StructureField[] fields)
+ {
+ Fields = fields;
+ }
+ }
+}