diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-05-31 17:17:50 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-31 17:17:50 -0300 |
commit | c27e453fd342688ea2a75a973566d711b00efcbb (patch) | |
tree | 8b11f933e01cb5309fe90baa929c1ad7029ecdbd /src/Ryujinx.Graphics.Shader/Translation/ResourceManager.cs | |
parent | 0e037d021347e802b28bd74af3459b007b48083e (diff) |
Share ResourceManager vertex vertex A and B shaders (#5181)1.1.845
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/Translation/ResourceManager.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Shader/Translation/ResourceManager.cs | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/Ryujinx.Graphics.Shader/Translation/ResourceManager.cs b/src/Ryujinx.Graphics.Shader/Translation/ResourceManager.cs index b31790d3..a2cfbe22 100644 --- a/src/Ryujinx.Graphics.Shader/Translation/ResourceManager.cs +++ b/src/Ryujinx.Graphics.Shader/Translation/ResourceManager.cs @@ -17,6 +17,8 @@ namespace Ryujinx.Graphics.Shader.Translation private readonly HashSet<int> _usedConstantBufferBindings; + public ShaderProperties Properties => _properties; + public ResourceManager(ShaderStage stage, IGpuAccessor gpuAccessor, ShaderProperties properties) { _gpuAccessor = gpuAccessor; @@ -98,19 +100,6 @@ namespace Ryujinx.Graphics.Shader.Translation _properties.AddConstantBuffer(binding, new BufferDefinition(BufferLayout.Std140, 0, binding, name, type)); } - public void InheritFrom(ResourceManager other) - { - for (int i = 0; i < other._cbSlotToBindingMap.Length; i++) - { - int binding = other._cbSlotToBindingMap[i]; - - if (binding >= 0) - { - _cbSlotToBindingMap[i] = binding; - } - } - } - public static string GetShaderStagePrefix(ShaderStage stage) { uint index = (uint)stage; |