Initial work
This commit is contained in:
parent
f617fb542a
commit
1876b346fe
518 changed files with 15170 additions and 12486 deletions
23
Ryujinx.Graphics.Shader/StructuredIr/GotoStatement.cs
Normal file
23
Ryujinx.Graphics.Shader/StructuredIr/GotoStatement.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
using Ryujinx.Graphics.Shader.IntermediateRepresentation;
|
||||
|
||||
namespace Ryujinx.Graphics.Shader.StructuredIr
|
||||
{
|
||||
class GotoStatement
|
||||
{
|
||||
public AstOperation Goto { get; }
|
||||
public AstAssignment Label { get; }
|
||||
|
||||
public IAstNode Condition => Label.Destination;
|
||||
|
||||
public bool IsLoop { get; set; }
|
||||
|
||||
public bool IsUnconditional => Goto.Inst == Instruction.Branch;
|
||||
|
||||
public GotoStatement(AstOperation branch, AstAssignment label, bool isLoop)
|
||||
{
|
||||
Goto = branch;
|
||||
Label = label;
|
||||
IsLoop = isLoop;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue