Invalidate shaders when they are modified

This commit is contained in:
gdk 2019-11-14 15:26:40 -03:00 committed by Thog
parent f0a59f345c
commit 6e399061ce
11 changed files with 411 additions and 291 deletions

View file

@ -0,0 +1,19 @@
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.Shader;
namespace Ryujinx.Graphics.Gpu.Shader
{
class CachedShader
{
public ShaderProgram Program { get; }
public IShader Shader { get; set; }
public int[] Code { get; }
public CachedShader(ShaderProgram program, int[] code)
{
Program = program;
Code = code;
}
}
}