aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Shader/StructuredIr/AstOperation.cs
diff options
context:
space:
mode:
authorgdk <gab.dark.100@gmail.com>2019-10-13 03:02:07 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commit1876b346fea647e8284a66bb6d62c38801035cff (patch)
tree6eeff094298cda84d1613dc5ec0691e51d7b35f1 /Ryujinx.Graphics/Shader/StructuredIr/AstOperation.cs
parentf617fb542a0e3d36012d77a4b5acbde7b08902f2 (diff)
Initial work
Diffstat (limited to 'Ryujinx.Graphics/Shader/StructuredIr/AstOperation.cs')
-rw-r--r--Ryujinx.Graphics/Shader/StructuredIr/AstOperation.cs49
1 files changed, 0 insertions, 49 deletions
diff --git a/Ryujinx.Graphics/Shader/StructuredIr/AstOperation.cs b/Ryujinx.Graphics/Shader/StructuredIr/AstOperation.cs
deleted file mode 100644
index 1607ffec..00000000
--- a/Ryujinx.Graphics/Shader/StructuredIr/AstOperation.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using Ryujinx.Graphics.Shader.IntermediateRepresentation;
-
-using static Ryujinx.Graphics.Shader.StructuredIr.AstHelper;
-
-namespace Ryujinx.Graphics.Shader.StructuredIr
-{
- class AstOperation : AstNode
- {
- public Instruction Inst { get; }
-
- public int ComponentMask { get; }
-
- private IAstNode[] _sources;
-
- public int SourcesCount => _sources.Length;
-
- public AstOperation(Instruction inst, params IAstNode[] sources)
- {
- Inst = inst;
- _sources = sources;
-
- foreach (IAstNode source in sources)
- {
- AddUse(source, this);
- }
-
- ComponentMask = 1;
- }
-
- public AstOperation(Instruction inst, int compMask, params IAstNode[] sources) : this(inst, sources)
- {
- ComponentMask = compMask;
- }
-
- public IAstNode GetSource(int index)
- {
- return _sources[index];
- }
-
- public void SetSource(int index, IAstNode source)
- {
- RemoveUse(_sources[index], this);
-
- AddUse(source, this);
-
- _sources[index] = source;
- }
- }
-} \ No newline at end of file