aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-05-31 17:17:50 -0300
committerGitHub <noreply@github.com>2023-05-31 17:17:50 -0300
commitc27e453fd342688ea2a75a973566d711b00efcbb (patch)
tree8b11f933e01cb5309fe90baa929c1ad7029ecdbd /src/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs
parent0e037d021347e802b28bd74af3459b007b48083e (diff)
Share ResourceManager vertex vertex A and B shaders (#5181)
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs b/src/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs
index 73525cb2..40a32e2d 100644
--- a/src/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs
+++ b/src/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs
@@ -39,9 +39,9 @@ namespace Ryujinx.Graphics.Shader.Translation
public TranslationOptions Options { get; }
- public ShaderProperties Properties { get; }
+ public ShaderProperties Properties => ResourceManager.Properties;
- public ResourceManager ResourceManager { get; }
+ public ResourceManager ResourceManager { get; set; }
public bool TransformFeedbackEnabled { get; }
@@ -159,8 +159,7 @@ namespace Ryujinx.Graphics.Shader.Translation
_sbSlots = new Dictionary<int, int>();
_sbSlotsReverse = new Dictionary<int, int>();
- Properties = new ShaderProperties();
- ResourceManager = new ResourceManager(stage, gpuAccessor, Properties);
+ ResourceManager = new ResourceManager(stage, gpuAccessor, new ShaderProperties());
}
public ShaderConfig(
@@ -429,8 +428,6 @@ namespace Ryujinx.Graphics.Shader.Translation
public void InheritFrom(ShaderConfig other)
{
- ResourceManager.InheritFrom(other.ResourceManager);
-
ClipDistancesWritten |= other.ClipDistancesWritten;
UsedFeatures |= other.UsedFeatures;