Initial work
This commit is contained in:
parent
f617fb542a
commit
1876b346fe
518 changed files with 15170 additions and 12486 deletions
35
Ryujinx.Graphics.Shader/StructuredIr/AstAssignment.cs
Normal file
35
Ryujinx.Graphics.Shader/StructuredIr/AstAssignment.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using static Ryujinx.Graphics.Shader.StructuredIr.AstHelper;
|
||||
|
||||
namespace Ryujinx.Graphics.Shader.StructuredIr
|
||||
{
|
||||
class AstAssignment : AstNode
|
||||
{
|
||||
public IAstNode Destination { get; }
|
||||
|
||||
private IAstNode _source;
|
||||
|
||||
public IAstNode Source
|
||||
{
|
||||
get
|
||||
{
|
||||
return _source;
|
||||
}
|
||||
set
|
||||
{
|
||||
RemoveUse(_source, this);
|
||||
|
||||
AddUse(value, this);
|
||||
|
||||
_source = value;
|
||||
}
|
||||
}
|
||||
|
||||
public AstAssignment(IAstNode destination, IAstNode source)
|
||||
{
|
||||
Destination = destination;
|
||||
Source = source;
|
||||
|
||||
AddDef(destination, this);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue