using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.Shader;
namespace Ryujinx.Graphics.Gpu.Shader
{
/// <summary>
/// Cached shader code for a single shader stage.
/// </summary>
class CachedShader
/// Shader program containing translated code.
public ShaderProgram Program { get; }
/// Host shader object.
public IShader HostShader { get; set; }
/// Maxwell binary shader code.
public int[] Code { get; }
/// Creates a new instace of the cached shader.
/// <param name="program">Shader program</param>
/// <param name="code">Maxwell binary shader code</param>
public CachedShader(ShaderProgram program, int[] code)
Program = program;
Code = code;
}