mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-09 08:38:37 +00:00
35 lines
726 B
C#
35 lines
726 B
C#
|
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);
|
||
|
}
|
||
|
}
|
||
|
}
|