mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 10:16:43 +00:00
1f554c1093
* Renaming part 1 * Renaming part 2 * Renaming part 3 * Renaming part 4 * Renaming part 5 * Renaming part 6 * Renaming part 7 * Renaming part 8 * Renaming part 9 * Renaming part 10 * General cleanup * Thought I got all of these * Apply #595 * Additional renaming * Tweaks from feedback * Rename files
46 lines
No EOL
1,018 B
C#
46 lines
No EOL
1,018 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Ryujinx.Graphics.Gal.Shader
|
|
{
|
|
class ShaderIrBlock
|
|
{
|
|
public int Position { get; set; }
|
|
public int EndPosition { get; set; }
|
|
|
|
public ShaderIrBlock Next { get; set; }
|
|
public ShaderIrBlock Branch { get; set; }
|
|
|
|
public List<ShaderIrBlock> Sources { get; private set; }
|
|
|
|
public List<ShaderIrNode> Nodes { get; private set; }
|
|
|
|
public ShaderIrBlock(int position)
|
|
{
|
|
Position = position;
|
|
|
|
Sources = new List<ShaderIrBlock>();
|
|
|
|
Nodes = new List<ShaderIrNode>();
|
|
}
|
|
|
|
public void AddNode(ShaderIrNode node)
|
|
{
|
|
Nodes.Add(node);
|
|
}
|
|
|
|
public ShaderIrNode[] GetNodes()
|
|
{
|
|
return Nodes.ToArray();
|
|
}
|
|
|
|
public ShaderIrNode GetLastNode()
|
|
{
|
|
if (Nodes.Count > 0)
|
|
{
|
|
return Nodes[Nodes.Count - 1];
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
} |