Improve shader sending method to GAL, use a memory interface instead of reading a fixed array size and sending every time
This commit is contained in:
parent
84996ccd36
commit
79e0070363
12 changed files with 72 additions and 63 deletions
|
@ -6,15 +6,15 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
{
|
||||
private List<ShaderIrNode> Nodes;
|
||||
|
||||
private Dictionary<int, ShaderIrLabel> LabelsToInsert;
|
||||
private Dictionary<long, ShaderIrLabel> LabelsToInsert;
|
||||
|
||||
public int Position;
|
||||
public long Position;
|
||||
|
||||
public ShaderIrBlock()
|
||||
{
|
||||
Nodes = new List<ShaderIrNode>();
|
||||
|
||||
LabelsToInsert = new Dictionary<int, ShaderIrLabel>();
|
||||
LabelsToInsert = new Dictionary<long, ShaderIrLabel>();
|
||||
}
|
||||
|
||||
public void AddNode(ShaderIrNode Node)
|
||||
|
@ -22,7 +22,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
Nodes.Add(Node);
|
||||
}
|
||||
|
||||
public ShaderIrLabel GetLabel(int Position)
|
||||
public ShaderIrLabel GetLabel(long Position)
|
||||
{
|
||||
if (LabelsToInsert.TryGetValue(Position, out ShaderIrLabel Label))
|
||||
{
|
||||
|
@ -36,7 +36,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
return Label;
|
||||
}
|
||||
|
||||
public void MarkLabel(int Position)
|
||||
public void MarkLabel(long Position)
|
||||
{
|
||||
if (LabelsToInsert.TryGetValue(Position, out ShaderIrLabel Label))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue