Refactor shader translator ShaderConfig and reduce the number of out args (#1438)

This commit is contained in:
gdkchan 2020-07-30 02:53:23 -03:00 committed by GitHub
parent b3c051bbec
commit 636542d817
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 35 deletions

View file

@ -11,8 +11,6 @@ namespace Ryujinx.Graphics.Shader.Translation
public Block CurrBlock { get; set; }
public OpCode CurrOp { get; set; }
public FeatureFlags UsedFeatures { get; set; }
public ShaderConfig Config { get; }
private List<Operation> _operations;
@ -50,7 +48,7 @@ namespace Ryujinx.Graphics.Shader.Translation
{
case AttributeConsts.PositionX:
case AttributeConsts.PositionY:
UsedFeatures |= FeatureFlags.FragCoordXY;
Config.SetUsedFeature(FeatureFlags.FragCoordXY);
break;
}
}