aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/CodeGen/Spirv/OperationResult.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen/Spirv/OperationResult.cs')
-rw-r--r--Ryujinx.Graphics.Shader/CodeGen/Spirv/OperationResult.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Spirv/OperationResult.cs b/Ryujinx.Graphics.Shader/CodeGen/Spirv/OperationResult.cs
new file mode 100644
index 00000000..f432f1c4
--- /dev/null
+++ b/Ryujinx.Graphics.Shader/CodeGen/Spirv/OperationResult.cs
@@ -0,0 +1,19 @@
+using Ryujinx.Graphics.Shader.Translation;
+using Spv.Generator;
+
+namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
+{
+ struct OperationResult
+ {
+ public static OperationResult Invalid => new OperationResult(AggregateType.Invalid, null);
+
+ public AggregateType Type { get; }
+ public Instruction Value { get; }
+
+ public OperationResult(AggregateType type, Instruction value)
+ {
+ Type = type;
+ Value = value;
+ }
+ }
+}