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