/ src / Ryujinx.Graphics.Shader / StructuredIr / GotoStatement.cs
GotoStatement.cs
 1  using Ryujinx.Graphics.Shader.IntermediateRepresentation;
 2  
 3  namespace Ryujinx.Graphics.Shader.StructuredIr
 4  {
 5      class GotoStatement
 6      {
 7          public AstOperation Goto { get; }
 8          public AstAssignment Label { get; }
 9  
10          public IAstNode Condition => Label.Destination;
11  
12          public bool IsLoop { get; set; }
13  
14          public bool IsUnconditional => Goto.Inst == Instruction.Branch;
15  
16          public GotoStatement(AstOperation branch, AstAssignment label, bool isLoop)
17          {
18              Goto = branch;
19              Label = label;
20              IsLoop = isLoop;
21          }
22      }
23  }