diff options
author | gdk <gab.dark.100@gmail.com> | 2019-11-14 15:26:40 -0300 |
---|---|---|
committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
commit | 6e399061ceefb532561c4c5a5cd2681228e1231e (patch) | |
tree | 18d2248f10c975939e4f9c8af787d677c36b0250 /Ryujinx.Graphics.Gpu/Engine/Methods.cs | |
parent | f0a59f345c633b757ebd2a22fca23d7dab0f9f99 (diff) |
Invalidate shaders when they are modified
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/Methods.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/Methods.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Methods.cs b/Ryujinx.Graphics.Gpu/Engine/Methods.cs index b1326ec5..f48d0a7f 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Methods.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Methods.cs @@ -5,6 +5,7 @@ using Ryujinx.Graphics.GAL.InputAssembler; using Ryujinx.Graphics.GAL.Texture; using Ryujinx.Graphics.Gpu.Image; using Ryujinx.Graphics.Gpu.Memory; +using Ryujinx.Graphics.Gpu.Shader; using Ryujinx.Graphics.Gpu.State; using Ryujinx.Graphics.Shader; using System; @@ -609,11 +610,11 @@ namespace Ryujinx.Graphics.Gpu.Engine GraphicsShader gs = _shaderCache.GetGraphicsShader(addresses); - _vsUsesInstanceId = gs.Shader[0].Info.UsesInstanceId; + _vsUsesInstanceId = gs.Shader[0].Program.Info.UsesInstanceId; for (int stage = 0; stage < Constants.TotalShaderStages; stage++) { - ShaderProgramInfo info = gs.Shader[stage]?.Info; + ShaderProgramInfo info = gs.Shader[stage].Program?.Info; _currentProgramInfo[stage] = info; @@ -665,7 +666,7 @@ namespace Ryujinx.Graphics.Gpu.Engine _bufferManager.SetGraphicsUniformBufferEnableMask(stage, ubEnableMask); } - _context.Renderer.Pipeline.BindProgram(gs.Interface); + _context.Renderer.Pipeline.BindProgram(gs.HostProgram); } private static Target GetTarget(SamplerType type) |