Implement CAL and RET shader instructions (#1618)
* Add support for CAL and RET shader instructions * Remove unused stuff * Fix a bug that could cause the wrong values to be passed to a function * Avoid repopulating function id dictionary every time * PR feedback * Fix vertex shader A/B merge
This commit is contained in:
@ -4,9 +4,7 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
|
||||
{
|
||||
class StructuredProgramInfo
|
||||
{
|
||||
public AstBlock MainBlock { get; }
|
||||
|
||||
public HashSet<AstOperand> Locals { get; }
|
||||
public List<StructuredFunction> Functions { get; }
|
||||
|
||||
public HashSet<int> CBuffers { get; }
|
||||
public HashSet<int> SBuffers { get; }
|
||||
@ -22,11 +20,9 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
|
||||
public HashSet<AstTextureOperation> Samplers { get; }
|
||||
public HashSet<AstTextureOperation> Images { get; }
|
||||
|
||||
public StructuredProgramInfo(AstBlock mainBlock)
|
||||
public StructuredProgramInfo()
|
||||
{
|
||||
MainBlock = mainBlock;
|
||||
|
||||
Locals = new HashSet<AstOperand>();
|
||||
Functions = new List<StructuredFunction>();
|
||||
|
||||
CBuffers = new HashSet<int>();
|
||||
SBuffers = new HashSet<int>();
|
||||
|
Reference in New Issue
Block a user