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:
parent
973a615d40
commit
49f970d5bd
33 changed files with 1337 additions and 401 deletions
|
@ -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>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue